From bf9d387fcba47489a49a097ee916f2d763977190 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Mar 2015 14:40:56 +0100 Subject: score: Allow NULL for SMP lock name --- cpukit/score/include/rtems/score/smplock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/include/rtems/score/smplock.h b/cpukit/score/include/rtems/score/smplock.h index 364a722828..5eb6ef344f 100644 --- a/cpukit/score/include/rtems/score/smplock.h +++ b/cpukit/score/include/rtems/score/smplock.h @@ -505,7 +505,7 @@ static inline bool _SMP_lock_Stats_iteration_next( current = iteration_context->current; if ( !_Chain_Is_tail( &control->Stats_chain, ¤t->Node ) ) { - size_t name_len = strlen(current->name); + size_t name_len = current->name != NULL ? strlen(current->name) : 0; valid = true; -- cgit v1.2.3