diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-02-06 08:29:58 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2009-02-06 08:29:58 -0500 |
commit | d895ca505f7f9c4edf476a0c966e93917e35575c (patch) | |
tree | 64d797f76ec90c71951d9e32b667775b906af86a /source3/client | |
parent | ea8bd81b6eaf2d2ca005d30c1580e7a45d3b3c5d (diff) | |
download | samba-d895ca505f7f9c4edf476a0c966e93917e35575c.tar.gz samba-d895ca505f7f9c4edf476a0c966e93917e35575c.tar.bz2 samba-d895ca505f7f9c4edf476a0c966e93917e35575c.zip |
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>
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/mount.cifs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index df5be846f1..a736609580 100644 --- a/source3/client/mount.cifs.c +++ b/source3/client/mount.cifs.c @@ -1031,7 +1031,7 @@ int main(int argc, char ** argv) char * resolved_path = NULL; char * temp; char * dev_name; - int rc; + int rc = 0; int rsize = 0; int wsize = 0; int nomtab = 0; |