summaryrefslogtreecommitdiff
path: root/hwclock/hwclock.c
diff options
context:
space:
mode:
authorJohn Keeping <john.keeping@lineone.net>2009-05-25 12:24:46 +0100
committerKarel Zak <kzak@redhat.com>2009-05-27 22:59:25 +0200
commit49c0c23d9d90041caab41ca5ea84ac2e014c2ed8 (patch)
tree5e2672bcd4732942fe22fc1ee6439557d22ab9b1 /hwclock/hwclock.c
parent75f1b7c2f8926918f5a29cf55e5c8faf6ed637b8 (diff)
downloadutil-linux-old-49c0c23d9d90041caab41ca5ea84ac2e014c2ed8.tar.gz
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 11c606dd..571d63fb 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;
}