From c5e7bf3fa6f085fec6b24d1d4343b21f8723313d Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 30 Aug 2018 11:44:45 -0400 Subject: [PATCH] lib: fix use of frrpthread os_name Fix test for presence of configured os pthread name. Signed-off-by: Mark Stapp --- lib/frr_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c index eb6587a35a..c0aae5e52e 100644 --- a/lib/frr_pthread.c +++ b/lib/frr_pthread.c @@ -332,7 +332,7 @@ static void *fpt_run(void *arg) fpt->master->handle_signals = false; - if (fpt->os_name) + if (fpt->os_name[0]) frr_pthread_set_name(fpt, NULL, fpt->os_name); frr_pthread_notify_running(fpt); -- 2.39.5