]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/md3model/md5.cpp
gcc: appease the hardening warnings
[xonotic/netradiant.git] / plugins / md3model / md5.cpp
index 0a548f44384fec1fadc9fa37a53d8d7e023a21c6..63919cfb8ed574a582fb884dfc0c20e37766a82c 100644 (file)
@@ -303,7 +303,7 @@ bool MD5Model_parse(Model &model, Tokeniser &tokeniser)
         tokeniser.nextLine();
 
         MD5_RETURN_FALSE_IF_FAIL(MD5_parseToken(tokeniser, "shader"));
-        const char *shader;
+        const char *shader = nullptr;
         MD5_RETURN_FALSE_IF_FAIL(MD5_parseString(tokeniser, shader));
         surface.setShader(shader);
         tokeniser.nextLine();