tmp is on the stack, therefore storing its address for later
usage is FORBIDEN. Set it to NULL by now, and hope the cbdata is never used by the timer callbacks. This commit was SVN r23941.
Этот коммит содержится в:
родитель
5882290cdd
Коммит
17379a6097
@ -309,7 +309,7 @@ ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_notify_event_t);
|
||||
do { \
|
||||
struct timeval now; \
|
||||
opal_event_t *tmp; \
|
||||
tmp = opal_event.evtimer_new((cbfunc), tmp); \
|
||||
tmp = opal_event.evtimer_new((cbfunc), NULL); \
|
||||
now.tv_sec = (sec); \
|
||||
now.tv_usec = (usec); \
|
||||
OPAL_OUTPUT_VERBOSE((1, orte_debug_output, \
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user