[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 07/11: beginning securing of function calls
noreply at xfce.org
noreply at xfce.org
Tue Mar 7 23:38:31 CET 2017
This is an automated email from the git hooks/post-receive script.
timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.
commit dd24e79654c9da0d49733c0a6446f67d5757395e
Author: Fabian <timystery at arcor.de>
Date: Tue Mar 7 00:06:43 2017 +0100
beginning securing of function calls
---
lib/sensors-interface.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/sensors-interface.c b/lib/sensors-interface.c
index fb4aa89..7233344 100644
--- a/lib/sensors-interface.c
+++ b/lib/sensors-interface.c
@@ -514,6 +514,8 @@ init_widgets (t_sensors_dialog *sd)
TRACE ("enters init_widgets");
+ g_return_if_fail(sd != NULL);
+
sensors = sd->sensors;
for (idx_chip=0; idx_chip < sensors->num_sensorchips; idx_chip++) {
@@ -582,12 +584,15 @@ reload_listbox (t_sensors_dialog *sd)
TRACE ("enters reload_listbox");
+ g_return_if_fail(sd != NULL);
+
ptr_sensors_structure = sd->sensors;
for (idx_chip=0; idx_chip < ptr_sensors_structure->num_sensorchips; idx_chip++) {
ptr_chip_structure = (t_chip *) g_ptr_array_index (ptr_sensors_structure->chips, idx_chip);
ptr_tree_store = sd->myListStore[idx_chip];
+ g_assert(ptr_tree_store != NULL);
gtk_tree_store_clear (ptr_tree_store);
fill_gtkTreeStore (ptr_tree_store, ptr_chip_structure, ptr_sensors_structure->scale, sd);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list