From 5b7003708352c59b44311cd19c6746f9047ad140 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 6 Oct 2015 12:32:50 +0200 Subject: [PATCH] strv: properly return ENOMEM where we should in strv_extend_n() --- src/basic/strv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/strv.c b/src/basic/strv.c index 90f0b8c741a..d5169467da4 100644 --- a/src/basic/strv.c +++ b/src/basic/strv.c @@ -784,5 +784,5 @@ rollback: free(nl[j]); nl[k] = NULL; - return NULL; + return -ENOMEM; }