Permalink
Browse files

Merge pull request #1 from blackberry-gaming/next

Fixing crash on null pointer for alutLoadMemoryFromFile().
  • Loading branch information...
2 parents 639f215 + 76a83d5 commit c288129129308c428ee22a538df81d2f7a9df724 @seanpaultaylor seanpaultaylor committed Nov 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/alutInputStream.c
View
@@ -46,7 +46,7 @@ _alutInputStreamConstructFromFile (const char *fileName)
return NULL;
}
- if (stat (fileName, &statBuf))
+ if (!fileName || stat (fileName, &statBuf))
{
_alutSetError (ALUT_ERROR_IO_ERROR);
free (stream);

0 comments on commit c288129

Please sign in to comment.