Avoid conversion to 'size_t' from 'int' warnings

This commit is contained in:
Mico Micic 2023-05-08 12:28:14 +02:00
parent b6116261a3
commit 6006be038b

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;