diff options
Diffstat (limited to 'source4/lib/registry/tools')
-rw-r--r-- | source4/lib/registry/tools/regshell.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c index d25fee14fd..993fe3d791 100644 --- a/source4/lib/registry/tools/regshell.c +++ b/source4/lib/registry/tools/regshell.c @@ -622,7 +622,11 @@ int main(int argc, char **argv) while (true) { char *line, *prompt; - asprintf(&prompt, "%s\\%s> ", ctx->predef?ctx->predef:"", ctx->path); + if (asprintf(&prompt, "%s\\%s> ", ctx->predef?ctx->predef:"", + ctx->path) < 0) { + ret = false; + break; + } current_key = ctx->current; /* No way to pass a void * pointer via readline :-( */ |