shithub: riscv

Download patch

ref: ec70fc64ad6e5072f83ce672f20ae200055fe0eb
parent: 93ea257aa3487ed5cbfff14cf281a9850cc688dc
author: stanley lieber <[email protected]>
date: Thu Sep 22 20:52:47 EDT 2011

mothra: don't use isdigit()

--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -3,7 +3,6 @@
  */
 #include <u.h>
 #include <libc.h>
-#include <ctype.h>
 #include <draw.h>
 #include <event.h>
 #include <keyboard.h>
@@ -542,7 +541,7 @@
 		break;
 	case 'j':
 		s=arg(s);
-		if(isdigit(s))
+		if(*s)
 			geturl(www(atoi(s)-1)->url->fullname, GET, 0, 0, 0);
 		else
 			message("no url selected");