summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-01-07 22:58:22 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-01-08 17:44:03 -0800
commit63c7ac4dbb739e51d55249e71282699e5e0d7e1d (patch)
treea2bca5f072569be241ec8b821da4fa8a35a2b667
parentd279ffa49284b5e5f787f76edbe8c52226534a64 (diff)
Initialize (unused) data field in fsListCataloguesReq before sending it.
Quiets cppcheck 1.63 warning: [fc/fserve.c:2972]: (error) Uninitialized variable: lcreq Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
-rw-r--r--src/fc/fserve.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fc/fserve.c b/src/fc/fserve.c
index a445144..fc44d19 100644
--- a/src/fc/fserve.c
+++ b/src/fc/fserve.c
@@ -2964,6 +2964,7 @@ _fs_send_cat_sync (FSFpePtr conn)
* by a bogus catalogue
*/
lcreq.reqType = FS_ListCatalogues;
+ lcreq.data = 0;
lcreq.length = (SIZEOF(fsListCataloguesReq)) >> 2;
lcreq.maxNames = 0;
lcreq.nbytes = 0;