From: Jon Trulson Date: Mon, 14 Oct 2019 20:42:21 +0000 (-0600) Subject: dtpad: emit error on catopen() failure X-Git-Tag: 2.3.1~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7f414f5d3572133b9b3c22cf7e65e385c1a4c666;p=oweals%2Fcde.git dtpad: emit error on catopen() failure This patch was manually added via a diff supplied from a user on the CDE mailing list: Michele Ghisolfo --- diff --git a/cde/programs/dtpad/main.c b/cde/programs/dtpad/main.c index 8cf93e37..84b31aa5 100644 --- a/cde/programs/dtpad/main.c +++ b/cde/programs/dtpad/main.c @@ -1714,6 +1714,9 @@ _DtpadGetMessage( if ( first ) { first = 0; nlmsg_fd = catopen(_DTPAD_CAT_NAME, NL_CAT_LOCALE); + + if (nlmsg_fd == -1) + perror("catopen"); } #if defined(hpV4) msg = _DtCatgetsCached(nlmsg_fd, set, number, string);