src/confd: fix copy-paste check of alloca() return value

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-06-01 15:16:39 +02:00
committed by Tobias Waldekranz
parent 37397543fa
commit ba382e1af5
+1 -1
View File
@@ -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);