opal/dss: correctly handle data==NULL in opal_value_unload
Этот коммит содержится в:
родитель
da7ffb6448
Коммит
f9b3fb442e
@ -10,6 +10,8 @@
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2014 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -271,7 +273,7 @@ int opal_value_unload(opal_value_t *kv,
|
||||
if (type != kv->type) {
|
||||
return OPAL_ERR_TYPE_MISMATCH;
|
||||
}
|
||||
if (NULL == data && OPAL_STRING != type && OPAL_BYTE_OBJECT != type) {
|
||||
if (NULL == data) {
|
||||
OPAL_ERROR_LOG(OPAL_ERR_BAD_PARAM);
|
||||
return OPAL_ERR_BAD_PARAM;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user