diff options
author | John Keeping | 2009-05-25 13:24:46 +0200 |
---|---|---|
committer | Karel Zak | 2009-05-27 22:59:25 +0200 |
commit | 49c0c23d9d90041caab41ca5ea84ac2e014c2ed8 (patch) | |
tree | 5e2672bcd4732942fe22fc1ee6439557d22ab9b1 /hwclock/hwclock.c | |
parent | docs: add missing commands/projects to AUTHORS file (diff) | |
download | kernel-qcow2-util-linux-49c0c23d9d90041caab41ca5ea84ac2e014c2ed8.tar.gz kernel-qcow2-util-linux-49c0c23d9d90041caab41ca5ea84ac2e014c2ed8.tar.xz kernel-qcow2-util-linux-49c0c23d9d90041caab41ca5ea84ac2e014c2ed8.zip |
hwclock: fix mismatched popen/fclose.
date_child_fp is opened by popen, so should be closed with pclose.
Signed-off-by: John Keeping <john.keeping@lineone.net>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Diffstat (limited to 'hwclock/hwclock.c')
-rw-r--r-- | hwclock/hwclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c index 11c606ddf..571d63fb7 100644 --- a/hwclock/hwclock.c +++ b/hwclock/hwclock.c @@ -676,7 +676,7 @@ interpret_date_string(const char *date_opt, time_t * const time_p) { date_opt, (long) *time_p); } } - fclose(date_child_fp); + pclose(date_child_fp); return retcode; } |