From cac2dba48bf8029b2b0421850fcc4598e33569f6 Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Sun, 21 Oct 2018 03:55:04 +0300 Subject: libglusterfs multiple files: remove dead initilization Per newer GCC releases and clang-scan, some trivial dead initialization (values that were set but were never read) were removed. Compile-tested only! updates: bz#1193929 Signed-off-by: Yaniv Kaul Change-Id: Ia9959b2ff87d2e9cb46864e68ffe7dccb984db34 --- libglusterfs/src/stack.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src/stack.c') diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c index 4b5d13c3fc8..c06e2dc378d 100644 --- a/libglusterfs/src/stack.c +++ b/libglusterfs/src/stack.c @@ -327,6 +327,8 @@ gf_proc_dump_call_frame_to_dict(call_frame_t *call_frame, char *prefix, if (tmp_frame.unwind_to) { snprintf(key, sizeof(key), "%s.unwind_to", prefix); ret = dict_set_dynstr(dict, key, gf_strdup(tmp_frame.unwind_to)); + if (ret) + return; } return; -- cgit