diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2009-03-15 01:04:50 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2009-03-15 01:04:50 +0000 |
commit | bf25c3a43f79f568b55c45e2701f5c961977b47c (patch) | |
tree | eacd272cd739c11b793aa5788bba21fdc6d1205e /Src/hist.c | |
parent | f0bcd0ecd0896180c5a3f977e086f7237a774d25 (diff) | |
download | zsh-bf25c3a43f79f568b55c45e2701f5c961977b47c.tar.gz zsh-bf25c3a43f79f568b55c45e2701f5c961977b47c.tar.xz zsh-bf25c3a43f79f568b55c45e2701f5c961977b47c.zip |
26735: Check some function return values for failures. Gets rid of
some compiler warnings, and improves error handling/notification.
Diffstat (limited to 'Src/hist.c')
-rw-r--r-- | Src/hist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/hist.c b/Src/hist.c index 38ceac30a..637976de7 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -2291,9 +2291,9 @@ savehistfile(char *fn, int err, int writeflags) #ifdef HAVE_FCHMOD if (old_exists && out) { #ifdef HAVE_FCHOWN - fchown(fileno(out), sb.st_uid, sb.st_gid); + if (fchown(fileno(out), sb.st_uid, sb.st_gid) < 0) {} /* IGNORE FAILURE */ #endif - fchmod(fileno(out), sb.st_mode); + if (fchmod(fileno(out), sb.st_mode) < 0) {} /* IGNORE FAILURE */ } #endif } |