diff --git a/modules/src/read_em/readk.c b/modules/src/read_em/readk.c index a44c66d0f..ab82b79e2 100644 --- a/modules/src/read_em/readk.c +++ b/modules/src/read_em/readk.c @@ -246,7 +246,8 @@ getstring(isident) #ifdef CHECKING if (strleft < 0) { xerror("Negative length in string"); - return 0; + s->length = 0; + return s; } #endif CHECKING }