From 6fecc76d86922c586ce47281241adb1904d0c349 Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 25 Aug 2021 18:57:29 +0000 Subject: had an uninitialized variable. *shs at self* --- uriunescape.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'uriunescape.c') 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; } -- cgit v1.2.3