X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=tabular.c;h=a7916a47531a60aad42c59f6c8962b0a51b58f28;hb=dd32032c94021f23838645d6ff76a4ef64d5e29e;hp=0252a8e8ec1bf82aad5e3f6a723db40644fe35de;hpb=16a13cbfff44a996b8355cab6fdfee3fae75458d;p=calc.git diff --git a/tabular.c b/tabular.c index 0252a8e..a7916a4 100644 --- a/tabular.c +++ b/tabular.c @@ -154,8 +154,8 @@ double pop_tab (tab_t *tab, int id) void order_tab (tab_t *tab) { int i, j; - if ((!tab) || (tab->size < 3)) { - VERBOSE (WARNING, fprintf (stdout, "error not enough element in stack (%d)\n", tab->size)); + if ((!tab) || (tab->size < 2)) { + VERBOSE (WARNING, fprintf (stdout, "error not enough element in stack (%d)\n", (tab) ? tab->size : 0)); return; }