# HG changeset patch # User David A. Holland # Date 1364709736 14400 # Node ID 5e24746d83355807779b785ac84a74fee204a82b # Parent 90c6052410ce4cc2e0acef2c6516ed29a2486979 Assert on trailing whitespace. (it is supposed to have been pruned by the caller) diff -r 90c6052410ce -r 5e24746d8335 eval.c --- a/eval.c Sun Mar 31 01:27:46 2013 -0400 +++ b/eval.c Sun Mar 31 02:02:16 2013 -0400 @@ -647,6 +647,8 @@ len = strspn(expr+pos, ws); pos += len; p->column += len; + /* trailing whitespace is supposed to have been pruned */ + assert(expr[pos] != '\0'); if (check_word(p, expr, pos, &len)) { pos += len; p->column += len;