X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=tabular.c;h=83c17898248b07dd3495be769bbcdc7b35eddd2c;hb=a3f2e6cf008678cfa2b1a868e38fefbe81009971;hp=60709aa9dd5d8409c8b0b41776f212f1a76a72c4;hpb=e952523a06b81e8915751bdcb01ca87aad06ce1c;p=calc.git diff --git a/tabular.c b/tabular.c index 60709aa..83c1789 100644 --- a/tabular.c +++ b/tabular.c @@ -157,8 +157,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; }