Skip to content

Commit

Permalink
Fix guarded statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronuz committed Aug 23, 2018
1 parent b08f892 commit a924d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scss/src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a924d10

Please sign in to comment.