diff options
author | Alon Levy <alevy@redhat.com> | 2012-02-26 13:34:04 +0100 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-02-26 13:34:39 +0100 |
commit | 7a079b452b026d6ce38f95dcc397fa64b059fffb (patch) | |
tree | b304c4d0326e58e3898c626d7eb8947728e0ce0f /server/main_channel.c | |
parent | 65f89aca2c8170a83e184317f34cd1ab3cb55b77 (diff) | |
download | spice-7a079b452b026d6ce38f95dcc397fa64b059fffb.tar.gz spice-7a079b452b026d6ce38f95dcc397fa64b059fffb.tar.xz spice-7a079b452b026d6ce38f95dcc397fa64b059fffb.zip |
server: fix segfault on client disconnect
..as a result of missing initialization of newly introduced
pre_disconnect in main channel.
Diffstat (limited to 'server/main_channel.c')
-rw-r--r-- | server/main_channel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/main_channel.c b/server/main_channel.c index 4d1f8ea5..878f62d4 100644 --- a/server/main_channel.c +++ b/server/main_channel.c @@ -997,8 +997,7 @@ uint64_t main_channel_client_get_bitrate_per_sec(MainChannelClient *mcc) MainChannel* main_channel_init(void) { RedChannel *channel; - ChannelCbs channel_cbs; - + ChannelCbs channel_cbs = {0,}; channel_cbs.config_socket = main_channel_config_socket; channel_cbs.on_disconnect = main_channel_client_on_disconnect; |