fix possible use of NULL

This commit is contained in:
c0ntrol
2019-01-11 19:06:02 +01:00
parent ff9fd1ca8f
commit 9a5e6fc02e

View File

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