From 1db8f7d916874f22c15df3121e3ec5ba5f7e7310 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Wed, 30 Dec 2015 04:37:22 -0600 Subject: enabled magic by default in cuturl. made cuturl print empty string instead of trying to print nulls. matchurl was matching multiple times for things it shouldn't have and not cleaing out the url struct. Makefile now uses -Wall --- cuturl.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'cuturl.c') diff --git a/cuturl.c b/cuturl.c index 95d96ad..b2e7f84 100644 --- a/cuturl.c +++ b/cuturl.c @@ -8,6 +8,8 @@ #include "url.h" +#define MAGIC + /* schemes are case sensitive but cononicals are lower case. domain is case insensitive. return it lowercased? @@ -161,14 +163,14 @@ int main(int argc,char *argv[]) { } else { if(c) { for(i=0;i