From 2fd7f3360e1001b4974a536561284f7b75eeee03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C4=B0nan?= Date: Sun, 23 Oct 2011 20:59:56 +0200 Subject: [PATCH] img must be initialized to 0 --- debug.c | 2 +- decode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.c b/debug.c index f4200b7..abea7b0 100644 --- a/debug.c +++ b/debug.c @@ -130,7 +130,7 @@ int main(int argc, char **argv) const int width = (0.150 + 3.0 * sync_porch_len) * drate + 20; const int height = 256; - img_t *img; + img_t *img = 0; int hor_ticks = 0; int y_pixel_x = 0; diff --git a/decode.c b/decode.c index 24bc9c3..dec3a6d 100644 --- a/decode.c +++ b/decode.c @@ -359,7 +359,7 @@ int main(int argc, char **argv) short *buff = (short *)malloc(sizeof(short) * channels * factor_M); - img_t *img; + img_t *img = 0; for (int out = factor_L;; out++) { if (out >= factor_L) {