From: Andre Noll Date: Sat, 12 Apr 2008 07:46:40 +0000 (+0200) Subject: Init mmd->sender_cmd_data.cmd_num in vss_init(). X-Git-Tag: v0.3.3~91 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=ad8cddca626bb37daefa845134258574c55ad90e;p=paraslash.git Init mmd->sender_cmd_data.cmd_num in vss_init(). --- 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;