diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-28 10:37:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-28 10:37:58 +0400 |
commit | c4a50e9aeb589045b857fea878fb86faba39dd3c (patch) | |
tree | 650846ab417fc96c646da2bed9b8edd16e2a8147 /source/blender/blenlib/intern/string.c | |
parent | 0cb9a8311364edbc65fa207678341b88b986749d (diff) |
remove unneeded NULL checks, add one for give_matarar() return value.
Diffstat (limited to 'source/blender/blenlib/intern/string.c')
-rw-r--r-- | source/blender/blenlib/intern/string.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 5bd07ac8778..572b142d044 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -357,10 +357,9 @@ char *BLI_replacestrN(const char *__restrict str, const char *__restrict substr_ char *str_new; /* add what's left of the string to the assembly buffer - * - we've been adjusting str to point at the end of the replaced segments + * - we've been adjusting str to point at the end of the replaced segments */ - if (str != NULL) - BLI_dynstr_append(ds, str); + BLI_dynstr_append(ds, str); /* convert to new c-string (MEM_malloc'd), and free the buffer */ str_new = BLI_dynstr_get_cstring(ds); |