mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
util: don't call function in macro argument v2
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1252>
This commit is contained in:
parent
8c15a01d16
commit
8ab0e53812
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ char **
|
|||
strv_append_take(char **strv, char **str)
|
||||
{
|
||||
if (str && *str) {
|
||||
size_t len = max(strv_len(strv) + 1, 2);
|
||||
size_t len = strv_len(strv) + 1;
|
||||
len = max(len, 2);
|
||||
|
||||
char **s = realloc(strv, len * sizeof(*strv));
|
||||
if (!s)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue