diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-02-08 13:28:11 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2010-02-08 13:28:11 -0500 |
commit | 62ddb5db88f1bd557fb5de791f3f3fad6a91fc26 (patch) | |
tree | 13ade41a1c15842550bb696df35e95dcc42e6919 /mount.cifs.c | |
parent | 31660194c286a42de19a11466b7f311036e8866a (diff) | |
download | cifs-utils-62ddb5db88f1bd557fb5de791f3f3fad6a91fc26.tar.gz cifs-utils-62ddb5db88f1bd557fb5de791f3f3fad6a91fc26.tar.bz2 cifs-utils-62ddb5db88f1bd557fb5de791f3f3fad6a91fc26.zip |
silence some build warnings
mount.cifs.c: In function 'main':
mount.cifs.c:1201: warning: 'dev_name' may be used uninitialized in this function
mount.cifs.c:1217: warning: 'addr6' may be used uninitialized in this function
asn1.c: In function 'ber_read_OID_String':
asn1.c:591: warning: 'bytes_eaten' may be used uninitialized in this function
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r-- | mount.cifs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mount.cifs.c b/mount.cifs.c index b1e8479..a9d827c 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -1198,7 +1198,7 @@ int main(int argc, char ** argv) char * optionstail; char * resolved_path = NULL; char * temp; - char * dev_name; + char * dev_name = NULL; int rc = 0; int rsize = 0; int wsize = 0; @@ -1213,8 +1213,8 @@ int main(int argc, char ** argv) struct addrinfo *addrhead = NULL, *addr; struct utsname sysinfo; struct mntent mountent; - struct sockaddr_in *addr4; - struct sockaddr_in6 *addr6; + struct sockaddr_in *addr4 = NULL; + struct sockaddr_in6 *addr6 = NULL; FILE * pmntfile; if (check_setuid()) |