mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 22:30:06 +01:00
fix possible use of NULL
This commit is contained in:
@@ -70,6 +70,8 @@ void generator_to_arr( char *line, int *array)
|
||||
int i = 0;
|
||||
while(*p) {
|
||||
char *end = NULL;
|
||||
if(p == NULL)
|
||||
break;
|
||||
array[i] = strtol(p, &end, 10 );
|
||||
if( end == p)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user