From f342c57e6e66f662b3660c1c0cbeb89bc34b3c38 Mon Sep 17 00:00:00 2001 From: Kaian Date: Tue, 7 Jul 2015 11:07:00 +0200 Subject: [PATCH] Remove non-initialized variables warnings --- src/ui_call_flow.c | 2 +- src/ui_call_raw.c | 2 +- tests/test_input.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui_call_flow.c b/src/ui_call_flow.c index e287c2c..d1bb779 100644 --- a/src/ui_call_flow.c +++ b/src/ui_call_flow.c @@ -314,7 +314,7 @@ call_flow_draw_message(PANEL *panel, call_flow_arrow_t *arrow, int cline) char mediastr[40]; sip_msg_t *msg = arrow->msg; vector_iter_t medias; - int color; + int color = 0; // Get panel information info = call_flow_info(panel); diff --git a/src/ui_call_raw.c b/src/ui_call_raw.c index ba58137..37467ce 100644 --- a/src/ui_call_raw.c +++ b/src/ui_call_raw.c @@ -126,7 +126,7 @@ call_raw_print_msg(PANEL *panel, sip_msg_t *msg) // Message ngrep style Header char header[256]; char payload[2048]; - int color; + int color = 0; // Get panel information if (!(info = call_raw_info(panel))) diff --git a/tests/test_input.c b/tests/test_input.c index 2de35ac..596da32 100644 --- a/tests/test_input.c +++ b/tests/test_input.c @@ -51,7 +51,7 @@ int main() { int ppipe[2]; - int unused, ret; + int unused, ret = 0; unused = pipe(ppipe); // Max test duration