Skip to content
Snippets Groups Projects
Commit a59fef53 authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Fix uninitialized value

when compiling with optimizations (-02) due to "size" not being set in
case statement.
parent fcb8e441
No related branches found
No related tags found
No related merge requests found
......@@ -550,6 +550,9 @@ int _layouts_entity_set_kv(layout_t* l, entity_t* e, char* key, void* value,
case L_T_LONG_DOUBLE:
size = sizeof(long double);
break;
default:
value = NULL;
return SLURM_ERROR;
}
return entity_set_data(e, key_keydef, value, size);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment