X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ffile-handle-def.c;h=4c4820cb12a08fddfc025890fd1f02afd45bb035;hb=31547a75c54ea46b3915d96f41ca0c52484d6b8a;hp=53e00be13a71b2c2f1ea8f3ee7621d0780180bba;hpb=3a3d58adab4724bc9f63a130d5b02f2c7c2c2251;p=pspp diff --git a/src/data/file-handle-def.c b/src/data/file-handle-def.c index 53e00be13a..4c4820cb12 100644 --- a/src/data/file-handle-def.c +++ b/src/data/file-handle-def.c @@ -24,7 +24,6 @@ #include #include "data/dataset.h" -#include "data/file-name.h" #include "data/variable.h" #include "libpspp/cast.h" #include "libpspp/compiler.h" @@ -523,7 +522,7 @@ fh_lock (struct file_handle *h, enum fh_referent mask UNUSED, return NULL; } lock->open_cnt++; - + free_key (key); free (key); @@ -710,7 +709,7 @@ fh_get_identity (const struct file_handle *fh) struct file_identity *identity = xmalloc (sizeof *identity); const char *file_name = fh_get_file_name (fh); - + #if !(defined _WIN32 || defined __WIN32__) struct stat s; if (lstat (file_name, &s) == 0) @@ -762,7 +761,7 @@ fh_get_identity (const struct file_handle *fh) size_t bufsize; size_t pathlen = 255; char *cname = NULL; - do + do { bufsize = pathlen; cname = xrealloc (cname, bufsize);