summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--urigetline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/urigetline.c b/urigetline.c
index 2de0126..71d2149 100644
--- a/urigetline.c
+++ b/urigetline.c
@@ -76,8 +76,7 @@ int main(int argc,char *argv[]) {//argument needs to be the URI
}
a=line;
matches=1;
- for(;a;) {
- if(!*a) break;
+ for(;a && *a;) {
rule=MATCH_PATTERN;
j=0;
switch(a[0]) {