mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user