dont run if they specify zero channels
This commit is contained in:
1 parent
2ba1e47fd3
commit
fc6afa3add
1 file changed
+5
@@ -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