]> sourceware.org Git - newlib-cygwin.git/commit
strftime: use tzname if TM_ZONE is NULL
authorYaakov Selkowitz <yselkowi@redhat.com>
Wed, 25 Mar 2015 21:26:07 +0000 (16:26 -0500)
committerYaakov Selkowitz <yselkowi@redhat.com>
Mon, 30 Mar 2015 21:06:48 +0000 (16:06 -0500)
commit84304a44b1b24404d7faa714dc9d9d7accd464be
tree88344ea73b17c82296bdcfa066fd6467d707f011
parent1f9716e16068ef55a3776952dca9697a6949e14d
strftime: use tzname if TM_ZONE is NULL

This avoids a strlen(NULL) crash a few lines later.

* libc/time/strftime.c (strftime) <%Z>: Initialize tznam to NULL.
Use _tzname as fallback if TM_ZONE is NULL.
newlib/ChangeLog
newlib/libc/time/strftime.c
This page took 0.027601 seconds and 5 git commands to generate.