sunrpc: Fix possibly uninitialized variable warnings

These warnings are encountered when building with GCC 4.9.

Change-Id: I58b0c4f8c2d1724e42bb8037104ef93337c46f3d
Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>
This commit is contained in:
Zhao Wei Liew 2016-02-11 17:44:32 +08:00
parent db79ac147f
commit e8e41c8550
2 changed files with 2 additions and 2 deletions

View file

@ -249,7 +249,7 @@ static inline time_t convert_to_wallclock(time_t sinceboot)
static inline time_t get_expiry(char **bpp)
{
int rv;
int rv = 0;
struct timespec boot;
if (get_int(bpp, &rv))

View file

@ -500,7 +500,7 @@ static int unix_gid_parse(struct cache_detail *cd,
{
/* uid expiry Ngid gid0 gid1 ... gidN-1 */
int uid;
int gids;
int gids = 0;
int rv;
int i;
int err;