Commit ca1e415c by Marcus Winter

base_c: added assert in embb_tss_get

parent 3e063164
...@@ -57,6 +57,7 @@ int embb_tss_set(embb_tss_t* tss, void* value) { ...@@ -57,6 +57,7 @@ int embb_tss_set(embb_tss_t* tss, void* value) {
void* embb_tss_get(const embb_tss_t* tss) { void* embb_tss_get(const embb_tss_t* tss) {
assert(tss != NULL); assert(tss != NULL);
assert(tss->values != NULL);
unsigned int index = 0; unsigned int index = 0;
int status = embb_internal_thread_index(&index); int status = embb_internal_thread_index(&index);
if ((status != EMBB_SUCCESS) || (index >= tss->size)) { if ((status != EMBB_SUCCESS) || (index >= tss->size)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment