fixed issue SICS-459 - sics crashes when running hcommand without arguments

r3529 | jgn | 2012-04-05 11:24:32 +1000 (Thu, 05 Apr 2012) | 1 line
This commit is contained in:
Jing Chen
2012-04-05 11:24:32 +10:00
committed by Douglas Clowes
parent 5e83e57d54
commit 1dceabc8b7

View File

@@ -2978,6 +2978,7 @@ static int SicsCommandNode(SConnection *pCon, SicsInterp *pSics, void *pData,
if(argc < 3) {
SCWrite(pCon,"ERROR: insufficent number of arguments to hcommand",
eError);
return 0;
}
if(!SCMatchRights(pCon,usMugger)){
return 0;