summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-06 12:32:50 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-06 12:32:50 +0200
commit5b7003708352c59b44311cd19c6746f9047ad140 (patch)
tree441155459afebf7e131577c63af60f0d89e79747
parent163c76c9305e6fee91dad8a3004f77020000ef96 (diff)
strv: properly return ENOMEM where we should in strv_extend_n()
-rw-r--r--src/basic/strv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c
index 90f0b8c741..d5169467da 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;
}