]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/bytestreamutils.h
gcc: appease the hardening warnings
[xonotic/netradiant.git] / libs / bytestreamutils.h
index 69ec3755f9c0ca1da77eecc976f53f2d0f7d55d4..45749ce02d39e0cc08df1d9261a969eeba2e5eea 100644 (file)
@@ -151,7 +151,7 @@ inline float istream_read_float32_be( InputStreamType& istream ){
 
 template<typename InputStreamType>
 inline typename InputStreamType::byte_type istream_read_byte( InputStreamType& istream ){
-       typename InputStreamType::byte_type b;
+       typename InputStreamType::byte_type b = 0;
        istream.read( &b, sizeof( typename InputStreamType::byte_type ) );
        return b;
 }