From b6b9f5885566e4c2df8e3319fe092c22f319983f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 10 Oct 2006 13:46:17 -0700 Subject: Fix lint warning: deallocating a pointer that could be NULL: library.c(266) --- src/library.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/library.c b/src/library.c index 3c058ef..ea59912 100644 --- a/src/library.c +++ b/src/library.c @@ -263,7 +263,8 @@ XcursorScanTheme (const char *theme, const char *name) */ for (i = inherits; i && f == 0; i = _XcursorNextPath (i)) f = XcursorScanTheme (i, name); - free (inherits); + if (inherits != NULL) + free (inherits); return f; } -- cgit v1.2.1