Module: xenomai-forge
Branch: rtdm-api-waitqueues
Commit: e98ea4edce0758c51b4a86e4a976597fa55e41e4
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=e98ea4edce0758c51b4a86e4a976597fa55e41e4

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Apr 20 11:59:06 2014 +0200

boilerplate/debug: handle NULL name thread gracefully

---

 lib/boilerplate/debug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/boilerplate/debug.c b/lib/boilerplate/debug.c
index 37de802..d77b1d9 100644
--- a/lib/boilerplate/debug.c
+++ b/lib/boilerplate/debug.c
@@ -106,7 +106,7 @@ void backtrace_init_context(struct backtrace_data *btd,
 {
        __RT(pthread_mutex_init(&btd->lock, NULL));
        btd->inner = NULL;
-       btd->name = name;
+       btd->name = name ?: "<anonymous>";
        pthread_setspecific(btkey, btd);
 }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to