avoid a null-reference
authorceriel <none@none>
Mon, 19 Jun 1989 11:09:44 +0000 (11:09 +0000)
committerceriel <none@none>
Mon, 19 Jun 1989 11:09:44 +0000 (11:09 +0000)
modules/src/read_em/readk.c

index a44c66d..ab82b79 100644 (file)
@@ -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
        }