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>
This commit is contained in:
Sunny Kumar 2018-10-05 01:14:34 +05:30 committed by Amar Tumballi
parent 3be7116d39
commit f87d1a1e33

View File

@ -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,