summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c6
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
-rw-r--r--source3/tdb/tdbutil.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 7b313a3136..1d48ac0f71 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1848,13 +1848,13 @@ static void process_stdin(void)
while (1) {
fstring tok;
- fstring prompt;
+ fstring the_prompt;
char *line;
int i;
/* display a prompt */
- slprintf(prompt, sizeof(prompt)-1, "smb: %s> ", cur_dir);
- line = smb_readline(prompt, readline_callback, completion_fn);
+ slprintf(the_prompt, sizeof(the_prompt)-1, "smb: %s> ", cur_dir);
+ line = smb_readline(the_prompt, readline_callback, completion_fn);
if (!line) break;
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 917885eafb..57f95873fc 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -5305,7 +5305,7 @@ uint32 _spoolss_getform(pipes_struct *p, SPOOL_Q_GETFORM *q_u, SPOOL_R_GETFORM *
FORM_1 form_1;
fstring form_name;
int buffer_size=0;
- int numofforms=0, i;
+ int numofforms=0, i=0;
/* that's an [in out] buffer */
spoolss_move_buffer(q_u->buffer, &r_u->buffer);
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c
index d683d70c46..95c90efeed 100644
--- a/source3/tdb/tdbutil.c
+++ b/source3/tdb/tdbutil.c
@@ -127,7 +127,7 @@ size_t tdb_pack(char *buf, int bufsize, char *fmt, ...)
uint32 d;
int i;
void *p;
- int len;
+ int len=0;
char *s;
char c;
char *buf0 = buf;
@@ -212,7 +212,7 @@ int tdb_unpack(char *buf, int bufsize, char *fmt, ...)
va_list ap;
uint16 *w;
uint32 *d;
- int len;
+ int len=0;
int *i;
void **p;
char *s, **b;