dont run if they specify zero channels

This commit is contained in:
Jeff Hill
2001-10-24 15:33:00 +00:00
parent 2ba1e47fd3
commit fc6afa3add

View File

@@ -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;