Check for nil string argument in replaceString:::::::

git-svn-id: http://macvim.googlecode.com/svn/trunk@179 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-08-22 17:19:09 +00:00
parent bbaf848f8c
commit e71f402b6d
+5
View File
@@ -169,6 +169,11 @@
return;
}
// NOTE: If 'string' was initialized with bad data it might be nil; this
// may be due to 'enc' being set to an unsupported value, so don't print an
// error message or stdout will most likely get flooded.
if (!string) return;
if (!(fg && bg && sp)) {
NSLog(@"[%s] WARNING: background, foreground or special color not "
"specified", _cmd);