diff options
author | epoch <epoch@enzo.thebackupbox.net> | 2021-08-25 18:57:29 +0000 |
---|---|---|
committer | epoch <epoch@enzo.thebackupbox.net> | 2021-08-25 18:57:29 +0000 |
commit | 6fecc76d86922c586ce47281241adb1904d0c349 (patch) | |
tree | 003f6c731afdda4488cbf27c87b175d8075c6319 | |
parent | 06f4665fed2ee020f2194f4cbb03e5c604f6007a (diff) | |
download | uritools-6fecc76d86922c586ce47281241adb1904d0c349.tar.gz uritools-6fecc76d86922c586ce47281241adb1904d0c349.zip |
had an uninitialized variable. *shs at self*
-rw-r--r-- | uriunescape.c | 3 |
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; } |