Skip to content

Commit 189d7b9

Browse files
committed
opal/dss: revamp opal_value_unload() to keep valgrind happy
reorder tests to avoid valgrind complaining about uninitialized variables Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent a1a0e32 commit 189d7b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/dss/dss_load_unload.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
13-
* Copyright (c) 2015 Research Organization for Information Science
13+
* Copyright (c) 2015-2017 Research Organization for Information Science
1414
* and Technology (RIST). All rights reserved.
1515
* $COPYRIGHT$
1616
*
@@ -289,7 +289,7 @@ int opal_value_unload(opal_value_t *kv,
289289
return OPAL_ERR_TYPE_MISMATCH;
290290
}
291291
if (NULL == data ||
292-
(NULL == *data && OPAL_STRING != type && OPAL_BYTE_OBJECT != type)) {
292+
(OPAL_STRING != type && OPAL_BYTE_OBJECT != type && NULL == *data)) {
293293
OPAL_ERROR_LOG(OPAL_ERR_BAD_PARAM);
294294
return OPAL_ERR_BAD_PARAM;
295295
}

0 commit comments

Comments
 (0)