From 3c72e21cb2935c7ee1a228cfe5711d48da75e0f5 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 31 Mar 2018 14:24:13 -0600 Subject: [PATCH] dtspcd: coverity CID 174742; potential NULL derefs --- cde/programs/dtspcd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtspcd/main.c b/cde/programs/dtspcd/main.c index d9cc8078..4ca6a5f7 100644 --- a/cde/programs/dtspcd/main.c +++ b/cde/programs/dtspcd/main.c @@ -210,7 +210,7 @@ int main(int argc, XeString *argv) log_path = XeSBTempPath((XeString)"DTSPCD.log"); if(NULL == freopen("/dev/null", "w", stderr)) { - fprintf(stderr, "Unable to open /dev/null\n"); + printf("Unable to open /dev/null\n"); exit(EXIT_FAILURE); } @@ -229,7 +229,7 @@ int main(int argc, XeString *argv) SPC_Open_Log(log_path, FALSE); SPC_Print_Protocol = spc_logF; if(NULL == (stderr = freopen(log_path, "a", stderr))) { - fprintf(stderr, "Unable to reopen '%s' as stderr\n", log_path); + printf("Unable to reopen '%s' as stderr\n", log_path); exit(EXIT_FAILURE); } setbuf(stderr, NULL); -- 2.25.1