about summary refs log tree commit diff
path: root/lib/util/nstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/nstring.c')
-rw-r--r--lib/util/nstring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/nstring.c b/lib/util/nstring.c
index 61acd061..702a3c44 100644
--- a/lib/util/nstring.c
+++ b/lib/util/nstring.c
@@ -769,6 +769,7 @@ asprintfN(const char ** const resultP,
         *resultP = strsol;
     else {
         size_t const allocSize = dryRunLen + 1;
+        char * result;
         result = malloc(allocSize);
         if (result == NULL)
             *resultP = strsol;