[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 09/11: 1 More assertion

noreply at xfce.org noreply at xfce.org
Tue Mar 7 23:38:33 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 d77a04bcf525904a01838845dc3854ef2fe22cf0
Author: Fabian <timystery at arcor.de>
Date:   Tue Mar 7 22:10:22 2017 +0100

    1 More assertion
---
 panel-plugin/sensors-plugin.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/panel-plugin/sensors-plugin.c b/panel-plugin/sensors-plugin.c
index 654186f..d8a8c4b 100644
--- a/panel-plugin/sensors-plugin.c
+++ b/panel-plugin/sensors-plugin.c
@@ -338,6 +338,7 @@ sensors_update_tacho_panel (t_sensors *sensors)
 
             if (ptr_chipfeature->show == TRUE) {
                 ptr_tacho = sensors->tachos[idx_sensorchips][idx_feature];
+                g_assert(ptr_tacho != NULL);
 
                 val_percentage = sensors_get_percentage (ptr_chipfeature);
                 gtk_sensorstacho_set_size(GTK_SENSORSTACHO(ptr_tacho), size_panel);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list