X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdfm.c;h=0cfa801fcf20c6d47715042818b544496adfc981;hb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;hp=0b231208b8a686b8eb9b8dc4f64e317efeed2f26;hpb=b9dcb1c23a48b9db5444b9f10aac0748b83898ad;p=pspp-builds.git diff --git a/src/dfm.c b/src/dfm.c index 0b231208..0cfa801f 100644 --- a/src/dfm.c +++ b/src/dfm.c @@ -36,6 +36,7 @@ char *alloca (); #endif #include +#include "dfm.h" #include #include #include @@ -485,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))