dont run if they specify zero channels
This commit is contained in:
@@ -489,6 +489,11 @@ int catime ( char *channelName, unsigned channelCount, enum appendNumberFlag app
|
||||
unsigned nBytes;
|
||||
ti *pItemList;
|
||||
|
||||
if ( channelCount == 0 ) {
|
||||
printf ( "channel count was zero\n" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
pItemList = calloc ( channelCount, sizeof (ti) );
|
||||
if ( ! pItemList ) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user