summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-05-12 07:53:37 +0000
committerJim Meyering <jim@meyering.net>2005-05-12 07:53:37 +0000
commitc73cf112919e9b66189cc67303203e5d0612ba86 (patch)
treee0fff2b42d78e84aac3a43c4b83675dc4830c1d0
parent6242e3ebfd79d95326a82c65877974fa6b93918e (diff)
downloadcoreutils-c73cf112919e9b66189cc67303203e5d0612ba86.tar.xz
Assume `free (NULL)' works.
-rw-r--r--src/date.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c
index 0cabe3aae..dc0efd2a2 100644
--- a/src/date.c
+++ b/src/date.c
@@ -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;
}