From fb989c2a6531ffb53aad2cb8aba85f974d8e9fcf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 24 Dec 2012 14:59:15 +0000 Subject: code cleanup: don't alloca zero size and remove paranoid NULL checks (checked all uses and there not needed). --- source/blender/blenlib/intern/path_util.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/blender/blenlib/intern/path_util.c') diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 7c1842b10f2..3c43fe2fb72 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -1212,8 +1212,6 @@ void BLI_setenv_if_new(const char *env, const char *val) void BLI_clean(char *path) { - if (path == NULL) return; - #ifdef WIN32 if (path && BLI_strnlen(path, 3) > 2) { BLI_char_switch(path + 2, '/', '\\'); @@ -1225,7 +1223,6 @@ void BLI_clean(char *path) void BLI_char_switch(char *string, char from, char to) { - if (string == NULL) return; while (*string != 0) { if (*string == from) *string = to; string++; -- cgit v1.2.3