diff options
Diffstat (limited to 'src/ctl.c')
-rw-r--r-- | src/ctl.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1868,4 +1868,5 @@ fun_stop (struct json_value *result, struct prog *prog) { - progman_stop_component (prog); - prog->v.p.comp->flags |= CF_DISABLED; + progman_stop_component (&prog); + if (prog) + prog->v.p.comp->flags |= CF_DISABLED; json_object_set_string (result, "status", "OK"); @@ -1905,3 +1906,3 @@ fun_restart (struct json_value *result, struct prog *prog) { - progman_stop_component (prog); + progman_stop_component (&prog); json_object_set_string (result, "status", "OK"); |