From ca1e415c918cdbd568176ca9ea89223ddd66667f Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Thu, 29 Jan 2015 11:50:49 +0100 Subject: [PATCH] base_c: added assert in embb_tss_get --- base_c/src/thread_specific_storage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/base_c/src/thread_specific_storage.c b/base_c/src/thread_specific_storage.c index a925462..db4443e 100644 --- a/base_c/src/thread_specific_storage.c +++ b/base_c/src/thread_specific_storage.c @@ -57,6 +57,7 @@ int embb_tss_set(embb_tss_t* tss, void* value) { void* embb_tss_get(const embb_tss_t* tss) { assert(tss != NULL); + assert(tss->values != NULL); unsigned int index = 0; int status = embb_internal_thread_index(&index); if ((status != EMBB_SUCCESS) || (index >= tss->size)) { -- libgit2 0.26.0