summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/logging.c')
-rw-r--r--libglusterfs/src/logging.c4
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: