Changeset fefd34b


Ignore:
Timestamp:
03/06/12 10:30:01 (9 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
17094b2
Parents:
e90d5a8
Message:
  • Fixed warning caused by failing to check the return value of getenv()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_legacy.c

    ra3041a4 rfefd34b  
    154154        tm.tm_isdst = -1; /* forces check for summer time */
    155155       
    156         getenv("TZ");
     156        if (getenv("TZ") == NULL) {
     157                perror("getenv(TZ)");
     158                return (time_t)0;
     159        }
    157160        if (putenv("TZ=Pacific/Auckland")) {
    158161                perror("putenv");
Note: See TracChangeset for help on using the changeset viewer.