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 a287890..611b61f 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 704c393..8a9d5f6 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;