From 3b1480ff10b6581dfe995ae1934a563b6ef95094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= Date: Mon, 27 Oct 2014 08:56:56 +0100 Subject: [PATCH] Don't read uninitialized memory --- stb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/stb.h b/stb.h index f903140..b930d85 100644 --- a/stb.h +++ b/stb.h @@ -5348,6 +5348,7 @@ FILE * stb_fopen(char *filename, char *mode) // save away the full path to the file so if the program // changes the cwd everything still works right! unix has // better ways to do this, but we have to work in windows + name_full[0] = '\0'; // stb_fullpath reads name_full[0] if (stb_fullpath(name_full, sizeof(name_full), filename)==0) return 0;