summaryrefslogtreecommitdiff
path: root/urigetline.c
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2022-08-19 18:57:38 -0500
committerepoch <epoch@thebackupbox.net>2022-08-19 18:57:38 -0500
commit03762afa63c63f21c3e035aced349fb87d0352fb (patch)
tree0b08d02cc03f5780a8a8cf810567866dff6ec209 /urigetline.c
parent96adcfcc7775e89f8a8d084215a07d3f2662c6a0 (diff)
downloaduritools-03762afa63c63f21c3e035aced349fb87d0352fb.tar.gz
uritools-03762afa63c63f21c3e035aced349fb87d0352fb.zip
even less lines
Diffstat (limited to 'urigetline.c')
-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]) {