shithub: choc

Download patch

ref: dc2d1d6229fa15371e5103ebe44bd68b21094f1a
parent: 48e19c69bf470517353101a445b8d824d1b3f7bb
parent: b0c0fb1500a880c83f75a9954c9f276976ec855c
author: Simon Howard <fraggle+github@gmail.com>
date: Tue Nov 8 06:59:35 EST 2016

Merge pull request #800 from fabiangreffrath/issue794

p_saveg.c: initialize result in saveg_read8()

--- a/src/doom/p_saveg.c
+++ b/src/doom/p_saveg.c
@@ -77,7 +77,7 @@
 
 static byte saveg_read8(void)
 {
-    byte result;
+    byte result = -1;
 
     if (fread(&result, 1, 1, save_stream) < 1)
     {