[Scummvm-git-logs] scummvm master -> 3ac39075c81d13705905d915f00fdd58e110e173
wjp
wjp at usecode.org
Tue Nov 14 09:12:55 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3ac39075c8 GRAPHICS: Fix potentially uninitialized pointers in BDF loader
Commit: 3ac39075c81d13705905d915f00fdd58e110e173
https://github.com/scummvm/scummvm/commit/3ac39075c81d13705905d915f00fdd58e110e173
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2017-11-14T09:12:15+01:00
Commit Message:
GRAPHICS: Fix potentially uninitialized pointers in BDF loader
Changed paths:
graphics/fonts/bdf.cpp
diff --git a/graphics/fonts/bdf.cpp b/graphics/fonts/bdf.cpp
index 71911d2..e3c6ee1 100644
--- a/graphics/fonts/bdf.cpp
+++ b/graphics/fonts/bdf.cpp
@@ -296,7 +296,8 @@ BdfFont *BdfFont::loadFont(Common::SeekableReadStream &stream) {
memset(bitmaps, 0, sizeof(byte *) * font.numCharacters);
byte *advances = new byte[font.numCharacters];
BdfBoundingBox *boxes = new BdfBoundingBox[font.numCharacters];
- char *familyName, *slant;
+ char *familyName = nullptr;
+ char *slant = nullptr;
int descent = -1;
More information about the Scummvm-git-logs
mailing list