mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 16:20:03 +01:00
//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).
This commit is contained in:
parent
f3cd3eb502
commit
adfa61c481
1 changed files with 9 additions and 9 deletions
18
Xprint/Oid.c
18
Xprint/Oid.c
|
|
@ -2104,16 +2104,16 @@ const char* XpOidNotifyString(XpOidNotify notify)
|
||||||
{
|
{
|
||||||
switch(notify)
|
switch(notify)
|
||||||
{
|
{
|
||||||
case XPOID_NOTIFY_UNSUPPORTED:
|
case XPOID_NOTIFY_NONE:
|
||||||
return (const char*)NULL;
|
return NOTIFY_NONE_STR;
|
||||||
break;
|
case XPOID_NOTIFY_EMAIL:
|
||||||
case XPOID_NOTIFY_NONE:
|
return NOTIFY_EMAIL_STR;
|
||||||
return NOTIFY_NONE_STR;
|
case XPOID_NOTIFY_UNSUPPORTED:
|
||||||
break;
|
return (const char *)NULL;
|
||||||
case XPOID_NOTIFY_EMAIL:
|
|
||||||
return NOTIFY_EMAIL_STR;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ErrorF("XpOidNotifyString: Unsupported notify=%ld\n", (long)notify);
|
||||||
|
return (const char *)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue