mirror of
https://github.com/hufrea/byedpi.git
synced 2025-03-14 12:58:48 +03:00
parent
30a3b64a4d
commit
00219bd6ac
1 changed files with 4 additions and 1 deletions
5
main.c
5
main.c
|
@ -195,8 +195,11 @@ char *parse_cform(const char *str, ssize_t *size)
|
|||
}
|
||||
i--; p--;
|
||||
}
|
||||
*size = i;
|
||||
char *m = realloc(d, i);
|
||||
if (i == 0) {
|
||||
return 0;
|
||||
}
|
||||
*size = i;
|
||||
return m ? m : d;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue