diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/smbmnt.c | 2 | ||||
-rw-r--r-- | source3/client/smbmount.c | 2 | ||||
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 2 |
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); |