summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scss/src/utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scss/src/utils.h b/scss/src/utils.h
index ec9a482..334f0fe 100644
--- a/scss/src/utils.h
+++ b/scss/src/utils.h
@@ -7,10 +7,11 @@ PyMem_Strndup(const char *str, size_t len)
{
if (str != NULL) {
char *copy = PyMem_New(char, len + 1);
- if (copy != NULL)
+ if (copy != NULL) {
memcpy(copy, str, len);
copy[len] = '\0';
return copy;
+ }
}
return NULL;
}