Some fields in the structures were not set before being sent. It was OK
in this context because it was useless parameters, but Coverity
complained.
Fixes Coverity
1127092 and
1127091
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
cmd.data_size = sizeof(connect);
cmd.cmd_version = 0;
+ memset(&connect, 0, sizeof(connect));
connect.major = htobe32(VERSION_MAJOR);
connect.minor = htobe32(VERSION_MINOR);
connect.type = htobe32(VIEWER_CLIENT_COMMAND);
cmd.data_size = sizeof(rq);
cmd.cmd_version = 0;
+ memset(&rq, 0, sizeof(rq));
rq.session_id = htobe64(id);
rq.seek = htobe32(VIEWER_SEEK_BEGINNING);