Merge pull request #432 from mico-micic/fix-size-t-warnings

Avoid conversion to 'size_t' from 'int' warnings
This commit is contained in:
Olof Hagsand 2023-05-08 15:37:04 +02:00 committed by GitHub
commit 7b15ab0306
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ typedef struct map_str2str map_str2str;
static inline char * strdup4(char *str) static inline char * strdup4(char *str)
{ {
char *dup; char *dup;
int len; size_t len;
len = align4(strlen(str)+1); len = align4(strlen(str)+1);
if ((dup = (char*) malloc(len)) == NULL) if ((dup = (char*) malloc(len)) == NULL)
return NULL; return NULL;