summaryrefslogtreecommitdiff
path: root/uriunescape.c
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
committerepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
commit3c5cd5e68278f82cc071623419e1a205c6fee38b (patch)
tree72d8dc4493e399d7ea6cc094826e527ef9e4c564 /uriunescape.c
parent62817acef7618bd5d6e77ffabb39aabe33f5a37c (diff)
parentc38649558142ee7a02c176f373120f417633b022 (diff)
downloaduritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.tar.gz
uritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.zip
Merge branch 'master' of ssh://git.thebackupbox.net/uritools
Diffstat (limited to 'uriunescape.c')
-rw-r--r--uriunescape.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uriunescape.c b/uriunescape.c
index 23800a5..2261da9 100644
--- a/uriunescape.c
+++ b/uriunescape.c
@@ -11,7 +11,7 @@ int main(int argc,char *argv[]) {
char buf2[BUFSIZE];
char *ab;
int blen;
- int hack;
+ int hack=0;
if(argc > 1) {
for(argv++,argc--;argc;argc--,argv++) {
ab=malloc(strlen(*argv));
@@ -40,6 +40,7 @@ int main(int argc,char *argv[]) {
}
}
}
+ if(blen < 0) perror("read");
}
return 0;
}