summaryrefslogtreecommitdiff
path: root/Xprint
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-10-15 21:43:31 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-10-15 21:43:31 +0000
commit4782b2f7c10708f9662d9fc743c692d0bec85743 (patch)
tree678e1d69e79caa33d0db96d6e4f29e5b2904d039 /Xprint
parent881b5756dc96dc33f6966ec6fccd324f63559dc2 (diff)
Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=1637 - Fix
problems in oid code which may cause the usage of an invalid string pointer (original patch by Egbert Eich).
Diffstat (limited to 'Xprint')
-rw-r--r--Xprint/Oid.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Xprint/Oid.c b/Xprint/Oid.c
index 32be3efb1..575f50582 100644
--- a/Xprint/Oid.c
+++ b/Xprint/Oid.c
@@ -2104,16 +2104,16 @@ const char* XpOidNotifyString(XpOidNotify notify)
{
switch(notify)
{
- case XPOID_NOTIFY_UNSUPPORTED:
- return (const char*)NULL;
- break;
- case XPOID_NOTIFY_NONE:
- return NOTIFY_NONE_STR;
- break;
- case XPOID_NOTIFY_EMAIL:
- return NOTIFY_EMAIL_STR;
- break;
+ case XPOID_NOTIFY_NONE:
+ return NOTIFY_NONE_STR;
+ case XPOID_NOTIFY_EMAIL:
+ return NOTIFY_EMAIL_STR;
+ case XPOID_NOTIFY_UNSUPPORTED:
+ return (const char *)NULL;
}
+
+ ErrorF("XpOidNotifyString: Unsupported notify=%ld\n", (long)notify);
+ return (const char *)NULL;
}
/*