[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4916-g45d75ec

Jeff Layton jlayton at samba.org
Fri Feb 6 13:32:14 GMT 2009


The branch, v3-3-test has been updated
       via  45d75ece3e35b5180e82dc0488b13fbd2a93c41e (commit)
      from  5cd79db1326d70c592e86491d36567a2eb4e1717 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 45d75ece3e35b5180e82dc0488b13fbd2a93c41e
Author: Jeff Layton <jlayton at redhat.com>
Date:   Fri Feb 6 08:31:45 2009 -0500

    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 at redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 source/client/mount.cifs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index df5be84..a736609 100644
--- a/source/client/mount.cifs.c
+++ b/source/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;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list