mount.cifs: initialize rc to 0 in main
commit70564cec0f3674ed04f6148f830405a35cf37c76
authorJeff Layton <jlayton@redhat.com>
Fri, 6 Feb 2009 13:31:45 +0000 (6 08:31 -0500)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Feb 2009 08:56:57 +0000 (16 09:56 +0100)
tree74dd9e3c4d07ab3f6be940721683f13423038baa
parent90ac9705f1861b02d719af50ed4812c2463b87e4
mount.cifs: initialize rc to 0 in main

The value of rc in main() isn't initialized in the declaration. This
wasn't a problem before, but Shirish's fakemount patch can make it so
that we return the uninitialized variable if the -n flag is used.

Fix this by initializing rc to 0.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 45d75ece3e35b5180e82dc0488b13fbd2a93c41e)
source/client/mount.cifs.c