summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2013-06-25 21:31:11 -0500
committerScott Balneaves <[email protected]>2013-06-25 21:31:11 -0500
commit0afa4372e2cce0f757b31d0b4a2ee626d9517055 (patch)
tree670a9f592878bafd4f65b3e52bae577350044b40
parentf6b4d1ec559bfef680178607c40d799319106419 (diff)
downloadlibmateweather-0afa4372e2cce0f757b31d0b4a2ee626d9517055.tar.bz2
libmateweather-0afa4372e2cce0f757b31d0b4a2ee626d9517055.tar.xz
Add in extra check before dereference
-rw-r--r--libmateweather/location-entry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmateweather/location-entry.c b/libmateweather/location-entry.c
index f6ce624..5da2fcd 100644
--- a/libmateweather/location-entry.c
+++ b/libmateweather/location-entry.c
@@ -466,6 +466,7 @@ mateweather_location_entry_build_model (MateWeatherLocationEntry *entry,
{
GtkTreeStore *store = NULL;
+ g_return_if_fail (MATEWEATHER_IS_LOCATION_ENTRY (entry));
entry->top = mateweather_location_ref (top);
store = gtk_tree_store_new (4, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_STRING);