code cleanup: remove redundant NULL checks and avoid writing to the source string.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 27 Jul 2013 14:05:59 +0000 (14:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 27 Jul 2013 14:05:59 +0000 (14:05 +0000)
commit6aa001f48dc9358a2183b62e03a95b19af2cdca7
tree5e5eece276e3fcb5d351712c00f50fb220420a8b
parentd403537fc45f2518be2e8a19150e240a64c8987c
code cleanup: remove redundant NULL checks and avoid writing to the source string.
also rename BLI_replacestr() -> BLI_replacestrN() since it returns an allocated buffer.
source/blender/blenlib/BLI_string.h
source/blender/blenlib/intern/string.c