Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-16 15:42:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-16 15:42:07 +0400
commit925c5010e8d5a132d4f64622602fddef1344211e (patch)
tree00bfae89ec41d86e79f9a1e5f2b791e71fc042a4 /source/blender/blenlib
parent7430701600ec1bd5538af2f816c36e8187f0beeb (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.c2
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);
}