From adfa61c4813352bf6c9d0f56c50b9a9049b64765 Mon Sep 17 00:00:00 2001 From: Roland Mainz Date: Mon, 13 Dec 2004 05:30:48 +0000 Subject: //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). --- Xprint/Oid.c | 18 +++++++++--------- 1 file 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; } /* -- cgit v1.2.3