summaryrefslogtreecommitdiff
path: root/win32/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/config.h')
-rwxr-xr-xwin32/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/config.h b/win32/config.h
index f5cb020c3..0ad72c880 100755
--- a/win32/config.h
+++ b/win32/config.h
@@ -420,7 +420,7 @@ static char * exec_path_append_subdir( char * string )
// terminate at first space
tmpchar = strchr( tmp_win32_path, ' ' );
- *tmpchar = 0;
+ if (tmpchar) *tmpchar = 0;
}
// find the last occurance of a back