Permalink
Browse files

fclose if not null.

  • Loading branch information...
mattn committed Dec 11, 2012
1 parent 90bd737 commit 56026c2d4d8eb302b6cf4acaee357dc1180a9bbd
Showing with 2 additions and 1 deletion.
  1. +2 −1 mrbgems/generator.c
View
@@ -184,7 +184,8 @@ for_each_gem (char before[1024], char after[1024],
skip = FALSE;
else
skip = TRUE;
- fclose(check);
+ if (check)
+ fclose(check);
}
if (skip == FALSE)

0 comments on commit 56026c2

Please sign in to comment.