diff options
author | Roy Marples <roy@marples.name> | 2007-10-05 12:00:18 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-05 12:00:18 +0000 |
commit | cf53fe51b1fe109c413777139fabea5934816b6a (patch) | |
tree | fb9cfb0b31e7cf6ab3e66fc98645721e1c5af5dd | |
parent | 632bd4d1f03cd0d4b6bf397b0768063f6713c12d (diff) |
Don't bother holding the old errno
-rw-r--r-- | src/rc-misc.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rc-misc.h b/src/rc-misc.h index 609447f7..5f7e55dd 100644 --- a/src/rc-misc.h +++ b/src/rc-misc.h @@ -83,13 +83,8 @@ static inline char *rc_xstrdup (const char *str) static inline bool rc_exists (const char *pathname) { struct stat buf; - int serrno = errno; - if (stat (pathname, &buf) == 0) - return (true); - - errno = serrno; - return (false); + return (stat (pathname, &buf) == 0); } #endif |