]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Assume `free (NULL)' works.
authorJim Meyering <jim@meyering.net>
Thu, 12 May 2005 07:53:37 +0000 (07:53 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 12 May 2005 07:53:37 +0000 (07:53 +0000)
src/date.c

index 0cabe3aae6bd180d9ec23255f73ff3fb16151929..dc0efd2a279abc31fbd95931d1b8a00579853674 100644 (file)
@@ -285,8 +285,7 @@ batch_convert (const char *input_filename, const char *format)
   if (fclose (in_stream) == EOF)
     error (EXIT_FAILURE, errno, "%s", quote (input_filename));
 
-  if (line != NULL)
-    free (line);
+  free (line);
 
   return ok;
 }