mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 07:33:01 +02:00
src/confd: fix copy-paste check of alloca() return value
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
committed by
Tobias Waldekranz
parent
37397543fa
commit
ba382e1af5
@@ -34,7 +34,7 @@ int srx_set_item(sr_session_ctx_t *session, const sr_val_t *val, sr_edit_options
|
||||
va_end(ap);
|
||||
|
||||
xpath = alloca(len);
|
||||
if (!val)
|
||||
if (!xpath)
|
||||
return -1;
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
||||
Reference in New Issue
Block a user