summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/stack.c
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-10-05 01:14:34 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-05 01:05:32 +0000
commitf87d1a1e3374596bc5ee9dad2aee8d12db657da5 (patch)
tree448688c64bfca9e3113a16ce5f6dc8d0b5448d6a /libglusterfs/src/stack.c
parent3be7116d39ff767a24e5206de584a3c5f3afe8ef (diff)
libglusterfs : fix coverity issue in stack.c
This patch fixes CID : 1395323. Issue : Uninitialized scalar variable (UNINIT) updates: bz#789278 Change-Id: Id9567ca2ff9b5a36b9014afa70cc5795fe67161d Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'libglusterfs/src/stack.c')
-rw-r--r--libglusterfs/src/stack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c
index 7196c18418e..c8a3b792979 100644
--- a/libglusterfs/src/stack.c
+++ b/libglusterfs/src/stack.c
@@ -85,7 +85,10 @@ gf_proc_dump_call_frame(call_frame_t *call_frame, const char *key_buf, ...)
{
char prefix[GF_DUMP_MAX_BUF_LEN];
va_list ap;
- call_frame_t my_frame;
+ call_frame_t my_frame = {
+ 0,
+ };
+
int ret = -1;
char timestr[256] = {
0,