log: make sure not to override errno
authorRan Benita <ran234@gmail.com>
Sun, 8 Jan 2012 22:48:39 +0000 (00:48 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 11 Jan 2012 12:28:47 +0000 (13:28 +0100)
commit86ec128d91fda6fb372b528ddd42579495e94762
tree97754af22635dddb46ad60095ca0ccf6fbca886b
parente823d283c5b40ed4aa53c4a08bb4988e889c438b
log: make sure not to override errno

This makes things easier in the common case of
<some error> -> <log error> -> <goto error handler> - <do something with
errno>

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/log.c