mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcursor.git
synced 2025-12-20 05:50:14 +01:00
Fix crash when encountering cursor themes with circular dependencies.
https://bugs.freedesktop.org/show_bug.cgi?id=3603 Signed-off-by: Philipp Ludwig <git-devel@philippludwig.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
4828abe494
commit
f64a8cc1a6
1 changed files with 6 additions and 1 deletions
|
|
@ -260,7 +260,12 @@ XcursorScanTheme (const char *theme, const char *name)
|
|||
* Recurse to scan inherited themes
|
||||
*/
|
||||
for (i = inherits; i && f == NULL; i = _XcursorNextPath (i))
|
||||
{
|
||||
if (strcmp(i, theme) != 0)
|
||||
f = XcursorScanTheme (i, name);
|
||||
else
|
||||
printf("Not calling XcursorScanTheme because of circular dependency: %s. %s", i, name);
|
||||
}
|
||||
if (inherits != NULL)
|
||||
free (inherits);
|
||||
return f;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue