aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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