mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-20 08:00:09 +01:00
util: don't call function in macro argument
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/342>
This commit is contained in:
parent
1b11d10ff2
commit
54e71e6dd5
1 changed files with 2 additions and 1 deletions
|
|
@ -238,7 +238,8 @@ char **
|
||||||
strv_append_take(char **strv, char **str)
|
strv_append_take(char **strv, char **str)
|
||||||
{
|
{
|
||||||
if (str && *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));
|
char **s = realloc(strv, len * sizeof(*strv));
|
||||||
if (!s)
|
if (!s)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue