Skip to content

Commit

Permalink
Ooops a few commits back
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 24, 2024
1 parent cff558e commit e2703e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smax-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,11 +961,11 @@ int smaxStringToValues(const char *str, void *value, XType type, int eCount, int
}

eSize = xElementSizeOf(type);
if(eSize <= 0) return x_trace(fn, NULL, X_SIZE_INVALID);
if(eSize <= 0) return x_trace(fn, X_NULL, EINVAL, X_SIZE_INVALID);

if(str == NULL) {
xZero(value, type, eCount);
return x_trace_null(fn, NULL);
return x_error(fn, NULL, "input string is NULL");
}

next = (char *) str;
Expand Down

0 comments on commit e2703e2

Please sign in to comment.