]> 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)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 23 Apr 2015 19:57:08 +0000 (21:57 +0200)
commit95a4fc87264e5fdeb5452d63d3b2df217a2f19b2
tree4eb4e0db5158df247a7ddc0b2093f964274b74fa
parent75d5f68aabf62c42884ff935f888b12bbcd00001
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.029947 seconds and 5 git commands to generate.