]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aft.c
server: Avoid NULL pointer dereference in make_status_items().
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index 4ed703ec0df094e8f3dd6ca7668de77b8bc27c0b..36f84943acfbad59fcfea1b03312d3e073b3824e 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -983,6 +983,8 @@ static int make_status_items(void)
        time_t current_time;
        int ret;
 
+       if (!status_item_ls_data.path) /* no audio file open */
+               return 0;
        ret = lls_parse(ARRAY_SIZE(argv), argv, cmd, &opts.lpr, NULL);
        assert(ret >= 0);
        time(&current_time);