From ad8cddca626bb37daefa845134258574c55ad90e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 12 Apr 2008 09:46:40 +0200 Subject: [PATCH] Init mmd->sender_cmd_data.cmd_num in vss_init(). --- server.c | 1 - vss.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index a287890c..611b61f7 100644 --- 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 704c3930..8a9d5f61 100644 --- 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; -- 2.39.5