various: don't check if endptr is null for strto[udll]
These functions always set endptr to non-null so there is no need to check.
This commit is contained in:
1 parent
6260e7236c
commit
da2739f44f
6 files changed
+6
-6
No files matched your search
+1
-1
@@ -1839,7 +1839,7 @@ static void parse_vorbis_chmap(struct mp_chmap *channels, unsigned char *data,
|
||||
snprintf(smask, sizeof(smask), "%.*s", (int)(len - 34), data + 34);
|
||||
char *end = NULL;
|
||||
uint32_t mask = strtol(smask, &end, 0);
|
||||
if (!end || end[0])
|
||||
if (end[0])
|
||||
mask = 0;
|
||||
struct mp_chmap chmask = {0};
|
||||
mp_chmap_from_waveext(&chmask, mask);
|
||||
|
||||
Reference in new issue
Block a user