chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2110e5
)
log: remove useless variable
author
Michal Schmidt
<mschmidt@redhat.com>
Tue, 17 Jan 2012 09:21:30 +0000
(10:21 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Tue, 17 Jan 2012 11:34:53 +0000
(12:34 +0100)
abort() never returns. Not even if the signal handler catches SIGABRT.
src/log.c
patch
|
blob
|
history
diff --git
a/src/log.c
b/src/log.c
index 79c63a18e715bd7d7e6c25c6af5fcb6c7c610041..04e90eb20f02239d45441264c07181003a6efce4 100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-625,7
+625,6
@@
void log_assert(
const char *format, ...) {
static char buffer[LINE_MAX];
- int saved_errno = errno;
va_list ap;
va_start(ap, format);
@@
-637,9
+636,6
@@
void log_assert(
log_dispatch(LOG_CRIT, file, line, func, buffer);
abort();
-
- /* If the user chose to ignore this SIGABRT, we are happy to go on, as if nothing happened. */
- errno = saved_errno;
}
int log_set_target_from_string(const char *e) {