Debian Codegraph @

debian/patches/07-fix-uninitialized-return.patch

raw symbols SCIP
1 Author: Eric Taylor <[email protected]>
2 Last-Update: 2019-02-11
3 Bug-Debian: https://bugs.debian.org/922049
4 Description: Fix uninitialized return
5
6 diff --git a/src/util/simplelog.c b/src/util/simplelog.c
7 index 07191d9..5bed40d 100644
8 --- a/src/util/simplelog.c
9 +++ b/src/util/simplelog.c
10 @@ -228,7 +228,7 @@ static gpg_error_t
11 internal_log_write (log_handle_t handle, log_level_t level,
12 const char *fmt, va_list ap)
13 {
14 - gpg_error_t err;
15 + gpg_error_t err = 0;
16
17 assert (handle->backend != LOG_BACKEND_NONE);
18
19 @@ -270,7 +270,6 @@ internal_log_write (log_handle_t handle, log_level_t level,
20 }
21
22 vsyslog (LOG_MAKEPRI (LOG_AUTH, syslog_priority), fmt, ap);
23 - err = 0;
24 }
25 else if (handle->backend == LOG_BACKEND_STREAM
26 || handle->backend == LOG_BACKEND_FILE)
27 @@ -314,7 +313,6 @@ internal_log_write (log_handle_t handle, log_level_t level,
28 vfprintf (stream, fmt, ap);
29 putc ('\n', stream);
30
31 - err = 0;
32 }
33
34 return err;