X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdfm.c;h=0cfa801fcf20c6d47715042818b544496adfc981;hb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;hp=9e9d080c97f17440fb75d0b2d43bbfc7b0155fbe;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/dfm.c b/src/dfm.c index 9e9d080c97..0cfa801fcf 100644 --- a/src/dfm.c +++ b/src/dfm.c @@ -36,6 +36,7 @@ char *alloca (); #endif #include +#include "dfm.h" #include #include #include @@ -50,8 +51,6 @@ char *alloca (); #include "str.h" #include "vfm.h" -#undef DEBUGGING -/*#define DEBUGGING 1*/ #include "debug-print.h" /* file_handle extension structure. */ @@ -108,9 +107,6 @@ open_inline_file (struct dfm_fhuser_ext *ext) { /* We want to indicate that the file is open, that we are not at eof, and that another line needs to be read in. */ -#if __CHECKER__ - memset (&ext->file, 0, sizeof ext->file); -#endif ext->file.file = NULL; ext->line = xmalloc (128); #if !PRODUCTION @@ -490,6 +486,8 @@ eof: char * dfm_get_record (struct file_handle *h, int *len) { + assert (h != NULL); + if (h->class == NULL) { if (!open_file_r (h))