sr_parse_sizestring: Deal with invalid strings better.

This cleans up a warning generated by clang's static analyzer.
This commit is contained in:
Bert Vermeulen 2014-10-02 12:57:19 +02:00
parent d386a52f64
commit 19e43ab21b
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ SR_API int sr_parse_sizestring(const char *sizestring, uint64_t *size)
} else } else
*size += frac_part; *size += frac_part;
if (*s && strcasecmp(s, "Hz")) if (s && *s && strcasecmp(s, "Hz"))
return SR_ERR; return SR_ERR;
return SR_OK; return SR_OK;