]> git.tue.mpg.de Git - paraslash.git/commitdiff
Init mmd->sender_cmd_data.cmd_num in vss_init().
authorAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 07:46:40 +0000 (09:46 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 07:46:40 +0000 (09:46 +0200)
server.c
vss.c

index a287890c4ca20c248c681d79038ad5f378b9d858..611b61f74d8724e115371d7c67d2d6692be4aa13 100644 (file)
--- a/server.c
+++ b/server.c
@@ -202,7 +202,6 @@ static void shm_init(void)
        mmd->active_connections = 0;
        mmd->vss_status_flags = VSS_NEXT;
        mmd->new_vss_status_flags = VSS_NEXT;
-       mmd->sender_cmd_data.cmd_num = -1;
        return;
 err_out:
        PARA_EMERG_LOG("%s\n", para_strerror(-ret));
diff --git a/vss.c b/vss.c
index 704c39300e569d9da65fe2a043880e7966c4f8c2..8a9d5f613f308db356756b090017d0ef88162080 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -138,6 +138,7 @@ void vss_init(void)
        }
        free(hn);
        free(home);
+       mmd->sender_cmd_data.cmd_num = -1;
        if (conf.autoplay_given) {
                struct timeval now, tmp;
                mmd->vss_status_flags |= VSS_PLAYING;