mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
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 <ghisolfo.m@gmail.com>
This commit is contained in:
parent
1972d3e378
commit
7f414f5d35
1 changed files with 3 additions and 0 deletions
|
@ -1714,6 +1714,9 @@ _DtpadGetMessage(
|
||||||
if ( first ) {
|
if ( first ) {
|
||||||
first = 0;
|
first = 0;
|
||||||
nlmsg_fd = catopen(_DTPAD_CAT_NAME, NL_CAT_LOCALE);
|
nlmsg_fd = catopen(_DTPAD_CAT_NAME, NL_CAT_LOCALE);
|
||||||
|
|
||||||
|
if (nlmsg_fd == -1)
|
||||||
|
perror("catopen");
|
||||||
}
|
}
|
||||||
#if defined(hpV4)
|
#if defined(hpV4)
|
||||||
msg = _DtCatgetsCached(nlmsg_fd, set, number, string);
|
msg = _DtCatgetsCached(nlmsg_fd, set, number, string);
|
||||||
|
|
Loading…
Reference in a new issue