mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
frontend_util: fix usage of xasprintf()
Expressions with side effects should not be passed as arguments, since they may be used multiple times.
This commit is contained in:
parent
827ed94f6d
commit
2024008373
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ bookmarkfs_load (
|
||||||
xasprintf(&sym_name, MODULE_SYM_NAME("%s", "%s"), prefix, name);
|
xasprintf(&sym_name, MODULE_SYM_NAME("%s", "%s"), prefix, name);
|
||||||
} else {
|
} else {
|
||||||
xasprintf(&lib_name, "%.*s", (int)(sep - name), name);
|
xasprintf(&lib_name, "%.*s", (int)(sep - name), name);
|
||||||
xasprintf(&sym_name, "%s", ++sep);
|
xasprintf(&sym_name, "%s", sep + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void const *impl = NULL;
|
void const *impl = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue