diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2021-05-03 20:25:43 -0400 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-07-08 10:50:37 -0700 |
commit | 103bccad6f4a421ede6a0ef2eecc2749ff9be083 (patch) | |
tree | 7aad9e3a956a5f8afb2b8c97f9406cc77afee2d8 | |
parent | 12ea0a8599ecba7663899d7e6ab82f3a27e506f0 (diff) |
cppcheck style-fixes in _XcursorThemeInherits
Copied from libxcursor@f807ac9c786714ef4e86ad7edfa60f92baf0b4a6
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | cursor/load_cursor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cursor/load_cursor.c b/cursor/load_cursor.c index bffd3cd..c8d587b 100644 --- a/cursor/load_cursor.c +++ b/cursor/load_cursor.c @@ -91,7 +91,6 @@ _XcursorThemeInherits (const char *full) if (!strncmp (line, "Inherits", 8)) { char *l = line + 8; - char *r; while (*l == ' ') l++; if (*l != '=') continue; l++; @@ -99,7 +98,7 @@ _XcursorThemeInherits (const char *full) result = malloc (strlen (l) + 1); if (result) { - r = result; + char *r = result; while (*l) { while (XcursorSep(*l) || XcursorWhite (*l)) l++; |