diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-25 21:20:39 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-01-25 21:20:39 +0100 |
commit | b679dda6c9e1faef890d28a2f1832b5c0b84deb4 (patch) | |
tree | 2507ce4a1fd6ebea5b3c211897575761f9f6fe80 /source3/client | |
parent | 6d387037b1969391b71ea56717e21a11ef05323e (diff) | |
download | samba-b679dda6c9e1faef890d28a2f1832b5c0b84deb4.tar.gz samba-b679dda6c9e1faef890d28a2f1832b5c0b84deb4.tar.bz2 samba-b679dda6c9e1faef890d28a2f1832b5c0b84deb4.zip |
Fix bogus uninitialized variable warnings
(This used to be commit 71d6580c837adcc2cddcdff561f6fb09701501ee)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/smbmnt.c | 2 | ||||
-rw-r--r-- | source3/client/smbmount.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c index 79c55b2f90..198faca173 100644 --- a/source3/client/smbmnt.c +++ b/source3/client/smbmnt.c @@ -162,7 +162,7 @@ do_mount(char *share_name, unsigned int flags, struct smb_mount_data *data) char *release, *major, *minor; char *data1, *data2; int ret; - char *saveptr; + char *saveptr = NULL; if (asprintf(&opts, "version=7,uid=%d,gid=%d,file_mode=0%o,dir_mode=0%o,%s", diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index 9fe2d36bd3..ee4b180a89 100644 --- a/source3/client/smbmount.c +++ b/source3/client/smbmount.c @@ -764,7 +764,7 @@ static void parse_mount_smb(int argc, char **argv) char *opts; char *opteq; int val; - char *saveptr; + char *saveptr = NULL; TALLOC_CTX *ctx = talloc_tos(); /* FIXME: This function can silently fail if the arguments are |