- Fixed a couple of bugs

This commit is contained in:
koennecke
2007-03-22 08:52:07 +00:00
parent 5e8a137b10
commit 1053f1cef1
10 changed files with 121 additions and 16 deletions

View File

@ -1119,7 +1119,10 @@ int StandardScanWrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
}
strtolower(argv[1]);
self = (pScanData)FindCommandData(pSics,argv[2],"ScanObject");
assert(self);
if(self == NULL){
SCWrite(pCon,"ERROR: scan object not found",eError);
return 0;
}
if(strcmp(argv[1],"writeheader") == 0){
return WriteHeader(self);