From: Mario Rugiero <mrugi...@gmail.com>

---
 plugins/thermal/thermal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/thermal/thermal.c b/plugins/thermal/thermal.c
index 75dba03..36aa072 100644
--- a/plugins/thermal/thermal.c
+++ b/plugins/thermal/thermal.c
@@ -99,7 +99,7 @@ proc_get_critical(char const* sensor_path){
     if( pstr )
     {
         pstr += strlen(PROC_TRIP_CRITICAL);
-        while( *pstr && *pstr == ' ' )
+        while( *pstr == ' ' )
             ++pstr;
 
         pstr[strlen(pstr)-3] = '\0';
@@ -131,7 +131,7 @@ proc_get_temperature(char const* sensor_path){
     if( pstr )
     {
         pstr += 12;
-        while( *pstr && *pstr == ' ' )
+        while( *pstr == ' ' )
             ++pstr;
 
         pstr[strlen(pstr)-3] = '\0';
-- 
2.17.1



_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to