Browse code

- fixed test of rpc->scan return value

Jan Janak authored on 24/02/2006 12:24:53
Showing 1 changed files
... ...
@@ -90,7 +90,7 @@ static void system_methodHelp(rpc_t* rpc, void* c)
90 90
 	rpc_export_t* ptr;
91 91
 	char* name;
92 92
 
93
-	if (rpc->scan(c, "s", &name) < 0) {
93
+	if (rpc->scan(c, "s", &name) < 1) {
94 94
 		rpc->fault(c, 400, "Method Name Expected");
95 95
 		return;
96 96
 	}