Whamcloud - gitweb
LU-3043 build: init local variable that breaks sles11sp2 build
authorBob Glossman <bob.glossman@intel.com>
Wed, 27 Mar 2013 14:38:04 +0000 (07:38 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 1 Apr 2013 20:02:22 +0000 (16:02 -0400)
Fix a recently introduced build breakage by initing a local variable
in new code.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I3c9c1a864e2b529b6a6e2578d0bfbfe2c920688c
Reviewed-on: http://review.whamcloud.com/5854
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/mdt/mdt_handler.c

index ccf86c1..0856f78 100644 (file)
@@ -5548,7 +5548,7 @@ static int mdt_path_current(struct mdt_thread_info *info,
        char                    *ptr;
        int                     reclen;
        struct linkea_data      ldata = { 0 };
-       int                     rc;
+       int                     rc = 0;
        ENTRY;
 
        /* temp buffer for path element, the buffer will be finally freed