aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-16 09:17:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-16 09:17:04 +0000
commit61e3d75def4ca1789a847fe57b06ab25ede05731 (patch)
treec0427949550579dcd921dee721415b9ab9ca72d4 /src
parent27b7220f1b536f3854d9fa35d0bd12321ac858e3 (diff)
Gisle Vanem's patch for variables that "might be used uninitialized"
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/urlglob.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index fb2f8e20c..65d9b0acb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2567,7 +2567,7 @@ operate(struct Configurable *config, int argc, char *argv[])
int separator = 0;
- FILE *infd;
+ FILE *infd = stdin;
bool infdfopen;
FILE *headerfilep = NULL;
char *urlbuffer=NULL;
diff --git a/src/urlglob.c b/src/urlglob.c
index 8b0da9c69..e1be1834f 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -435,8 +435,8 @@ char *glob_match_url(char *filename, URLGlob *glob)
int allocsize;
int stringlen=0;
char numbuf[18];
- char *appendthis;
- int appendlen;
+ char *appendthis = NULL;
+ int appendlen = 0;
/* We cannot use the glob_buffer for storage here since the filename may
* be longer than the URL we use. We allocate a good start size, then