From 87b6ac0c7f2e097bd5fbcddf3fb996fdcd016e55 Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Tue, 9 Jul 2024 03:03:06 -0400 Subject: [PATCH] raster3d: Fix uninitialized variable issue in main.c (#4006) Co-authored-by: Shubham Vasudeo Desai --- raster3d/r3.info/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raster3d/r3.info/main.c b/raster3d/r3.info/main.c index 17b8b501f53..1a12cfcc126 100644 --- a/raster3d/r3.info/main.c +++ b/raster3d/r3.info/main.c @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) { const char *mapset; char *line = NULL; - char tmp1[TMP_LENGTH], tmp2[TMP_LENGTH], tmp3[TMP_LENGTH]; + char tmp1[TMP_LENGTH] = "", tmp2[TMP_LENGTH] = "", tmp3[TMP_LENGTH] = ""; char timebuff[256]; int i; FILE *out;