summaryrefslogtreecommitdiffstats
path: root/hwclock/hwclock.c
diff options
context:
space:
mode:
authorJohn Keeping2009-05-25 13:24:46 +0200
committerKarel Zak2009-05-27 22:59:25 +0200
commit49c0c23d9d90041caab41ca5ea84ac2e014c2ed8 (patch)
tree5e2672bcd4732942fe22fc1ee6439557d22ab9b1 /hwclock/hwclock.c
parentdocs: add missing commands/projects to AUTHORS file (diff)
downloadkernel-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.c2
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;
}