summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-12-13 05:30:48 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-12-13 05:30:48 +0000
commitadfa61c4813352bf6c9d0f56c50b9a9049b64765 (patch)
tree1f362bed0525877800136ecf666818dbf11425bd
parentf3cd3eb5022cdea69050e6cd41cba05c3251ddc8 (diff)
//freedesktop.org/bugzilla/show_bug.cgi?id=1637) attachment #1114
(https://bugs.freedesktop.org/attachment.cgi?id=1114): Fix problems in oid code which may cause the usage of an invalid string pointer (original patch by Egbert Eich).
-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;
}
/*