[PATCH] libxt src/Resource.c Fix-possible-NULL-access - Comment fix
walter harms
wharms at bfs.de
Sat Oct 30 01:47:23 PDT 2010
Fix possibl NULL access
Signed-off-by: walter harms <wharms at bfs.de>
diff --git a/src/Resources.c b/src/Resources.c
index 1cb37d4..3090d7e 100644
--- a/src/Resources.c
+++ b/src/Resources.c
@@ -967,8 +967,11 @@ static XtCacheRef *GetResources(
if (cache_ptr && *cache_ptr)
cache_ptr++;
} else {
+ /* value.addr can be NULL see: !already_copied */
+ if (value.addr)
*((XtTranslations *)&widget->core.tm.current_state) =
*((XtTranslations *)value.addr);
+
}
}
}
More information about the xorg-devel
mailing list