summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-25 21:20:39 +0100
committerVolker Lendecke <vl@samba.org>2008-01-25 21:20:39 +0100
commitb679dda6c9e1faef890d28a2f1832b5c0b84deb4 (patch)
tree2507ce4a1fd6ebea5b3c211897575761f9f6fe80 /source3
parent6d387037b1969391b71ea56717e21a11ef05323e (diff)
downloadsamba-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')
-rw-r--r--source3/client/smbmnt.c2
-rw-r--r--source3/client/smbmount.c2
-rw-r--r--source3/rpcclient/cmd_spoolss.c2
3 files changed, 3 insertions, 3 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
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index d98cb99276..b5282d2e9b 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -1252,7 +1252,7 @@ static bool init_drv_info_3_members ( TALLOC_CTX *mem_ctx, DRIVER_INFO_3 *info,
{
char *str, *str2;
uint32 len, i;
- char *saveptr;
+ char *saveptr = NULL;
/* fill in the UNISTR fields */
str = get_driver_3_param (args, ":", &info->name);