diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-07-05 20:13:42 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-07-06 04:28:46 -0400 |
commit | 10b53d1fa37615e81d1e3b6e4d2d2e25e4342c15 (patch) | |
tree | afe8fc9518ccf222a06e8dbbbef52dbfa2ef3acb /src/xftdpy.c | |
parent | 6fc03611ed2b103b6b5a2f0c6b610087879325e4 (diff) | |
download | xorg-lib-libXft-10b53d1fa37615e81d1e3b6e4d2d2e25e4342c15.tar.gz |
errata (cppcheck, clang --analyze, manpage credit)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/xftdpy.c')
-rw-r--r-- | src/xftdpy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xftdpy.c b/src/xftdpy.c index bde7c65..47e8c33 100644 --- a/src/xftdpy.c +++ b/src/xftdpy.c @@ -53,7 +53,8 @@ _XftCloseDisplay (Display *dpy, XExtCodes *codes _X_UNUSED) for (prev = &_XftDisplayInfo; (info = *prev); prev = &(*prev)->next) if (info->display == dpy) break; - *prev = info->next; + if (info != NULL) + *prev = info->next; free (info); return 0; |