1
1

Protect against NULL input - I'm -sure- no one will do it, but...well, actually, they did. :-/

This commit was SVN r22232.
Этот коммит содержится в:
Ralph Castain 2009-11-25 15:13:21 +00:00
родитель 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);