git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea8bd81
)
mount.cifs: initialize rc to 0 in main
author
Jeff Layton
<jlayton@redhat.com>
Fri, 6 Feb 2009 13:29:58 +0000
(08:29 -0500)
committer
Jeff Layton
<jlayton@redhat.com>
Fri, 6 Feb 2009 13:29:58 +0000
(08:29 -0500)
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>
source3/client/mount.cifs.c
patch
|
blob
|
history
diff --git
a/source3/client/mount.cifs.c
b/source3/client/mount.cifs.c
index df5be846f1bcc40e0ad2faa2ced278ff85581430..a73660958055f72559c2edcb32a8ff44cd0ca95c 100644
(file)
--- 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;