diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-08-18 11:39:03 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2018-08-19 10:03:52 +0000 |
commit | fab6944206bf44e2260f20a9d5f1e785f933e705 (patch) | |
tree | 0eef23967b99436f0aab400b29a4c703a337d3d1 /libglusterfs/src/logging.c | |
parent | 23e2a420f90c4d39386a0c0c2a8bea0e376ab070 (diff) |
coverity: libglusterfs issues
CID: 1391415, 1274122, 1274201, 1382408, 1382437, 1389436
1288798, 1288106, 1288110
updates: bz#789278
Change-Id: I48c7a50f22f5f4580310040c66463d9f7dd26204
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/logging.c')
-rw-r--r-- | libglusterfs/src/logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c index 732c4b26473..a46cb234b72 100644 --- a/libglusterfs/src/logging.c +++ b/libglusterfs/src/logging.c @@ -2504,7 +2504,7 @@ out: return ret; } -int +static int _do_slog_format (const char *event, va_list inp, char **msg) { va_list valist_tmp; int i = 0; @@ -2585,7 +2585,7 @@ _do_slog_format (const char *event, va_list inp, char **msg) { } *msg = gf_strdup (tmp2); - if (!msg) + if (!*msg) ret = -1; out: |