From: Mark Stapp Date: Thu, 30 Aug 2018 15:44:45 +0000 (-0400) Subject: lib: fix use of frrpthread os_name X-Git-Tag: frr-7.1-dev~413^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F2947%2Fhead;p=mirror%2Ffrr.git lib: fix use of frrpthread os_name Fix test for presence of configured os pthread name. Signed-off-by: Mark Stapp --- 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);