diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-16 15:42:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-16 15:42:07 +0400 |
commit | 925c5010e8d5a132d4f64622602fddef1344211e (patch) | |
tree | 00bfae89ec41d86e79f9a1e5f2b791e71fc042a4 /source/blender/blenlib | |
parent | 7430701600ec1bd5538af2f816c36e8187f0beeb (diff) |
fix for checking char arrays against NULL, instead check their first character. also remove some dead code (return directly after return).
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 26fe0f21cd5..26b9e08c7f6 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -199,7 +199,7 @@ bool BLI_file_touch(const char *file) { FILE *f = BLI_fopen(file, "r+b"); if (f != NULL) { - char c = getc(f); + int c = getc(f); rewind(f); putc(c, f); } |