Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-28 10:37:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-28 10:37:58 +0400
commitc4a50e9aeb589045b857fea878fb86faba39dd3c (patch)
tree650846ab417fc96c646da2bed9b8edd16e2a8147 /source/blender/blenlib/intern/string.c
parent0cb9a8311364edbc65fa207678341b88b986749d (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.c5
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);