Stephen Hemminger da5a2d94dc color: handle case where fmt is NULL
There are cases where NULL is passed as format string when
nothing is to be printed. This is commonly done in the print_bool
function when a flag is false. Glibc seems to handle this case nicely
but for musl it will cause a segmentation fault

Since nothing needs to be printed, in this case; just check
for NULL and return.

Reported-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2024-01-22 20:26:08 -08:00
..
2022-01-15 10:41:13 -08:00
2022-07-25 12:07:16 -07:00
2024-01-22 20:26:08 -08:00
2016-03-27 10:50:14 -07:00
2023-06-05 12:49:34 -06:00
2023-12-22 09:57:54 -08:00
2023-06-23 16:46:29 -07:00
2023-06-05 12:49:34 -06:00
2023-06-05 18:45:45 -07:00
2023-06-05 18:45:45 -07:00
2023-01-14 09:00:34 -08:00
2022-07-29 11:22:42 -06:00