Cosmetic: use always g_getenv instead of getenv
[claws.git] / src / plugins / vcalendar / libical / libical / icaltime.c
index 6532ff2e8f0e875cab7dbb008296fb4609779225..8e127cecefd1f4a3b8091827e8421d2d1f20634e 100644 (file)
@@ -94,13 +94,13 @@ struct set_tz_save set_tz(const char* tzid)
     savetz.orig_tzid = 0;
     savetz.new_env_str = 0;
 
-    if(getenv("TZ") != 0){
-       orig_tzid = (char*)icalmemory_strdup(getenv("TZ"));
+    if (g_getenv("TZ") != NULL) {
+               orig_tzid = (char*)icalmemory_strdup(g_getenv("TZ"));
 
-       if(orig_tzid == 0){
+               if (orig_tzid == 0) {
             icalerror_set_errno(ICAL_NEWFAILED_ERROR);
-           return savetz;
-       }
+                       return savetz;
+               }
     }
 
     tmp_sz =strlen(tzid)+4;