aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-make/exec.c')
-rw-r--r--src/blogc-make/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index e1ff238..dafa6cb 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -352,7 +352,8 @@ bm_exec_blogc_runserver(const char *output_dir, bool verbose)
fflush(stdout);
// we don't need pipes to run blogc-runserver, because it is "interactive"
- int rv = WEXITSTATUS(system(cmd->str));
+ int status = system(cmd->str);
+ int rv = WEXITSTATUS(status);
bc_string_free(cmd, true);
if (rv != 0) {