Protect against NULL input - I'm -sure- no one will do it, but...well, actually, they did. :-/
This commit was SVN r22232.
Этот коммит содержится в:
родитель
c1206139dd
Коммит
9a6d5697a8
@ -44,6 +44,11 @@ void orte_util_parse_range_options(char *inp, char ***output)
|
||||
char *input, *bang;
|
||||
bool bang_option=false;
|
||||
|
||||
/* protect against null input */
|
||||
if (NULL == inp) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* protect the provided input */
|
||||
input = strdup(inp);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user