summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--pango/fonts.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d3b76a5..56937344 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-13 Behdad Esfahbod <behdad@gnome.org>
+
+ * pango/fonts.c (pango_font_face_list_sizes): Fix possible NULL
+ dereference. (Coverity found)
+
2006-05-11 Behdad Esfahbod <behdad@gnome.org>
* pango/fonts.c (pango_font_description_set_size): Update docs to note
diff --git a/pango/fonts.c b/pango/fonts.c
index df7b0c94..0e5de467 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -1666,7 +1666,8 @@ pango_font_face_list_sizes (PangoFontFace *face,
PANGO_FONT_FACE_GET_CLASS (face)->list_sizes (face, sizes, n_sizes);
else
{
- *sizes = NULL;
+ if (sizes != NULL)
+ *sizes = NULL;
*n_sizes = 0;
}
}