mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 88069
This commit is contained in:
parent
67fb14c52b
commit
a0edcdcc42
1 changed files with 2 additions and 3 deletions
|
@ -68,7 +68,7 @@ make_timezone(Calendar *c)
|
|||
XmString xmstr;
|
||||
int ac;
|
||||
Arg args[10];
|
||||
char buf[BUFSIZ], tmp_buf[BUFSIZ];
|
||||
char buf[BUFSIZ], tmp_buf[BUFSIZ] = "";
|
||||
char *title;
|
||||
void tz_customtime_cb(), tz_mytime_cb(),
|
||||
tz_apply_cb(), tz_cancel_cb(), tz_ok_cb();
|
||||
|
@ -296,8 +296,7 @@ make_timezone(Calendar *c)
|
|||
cm_strcpy(t->gmttimezone, "");
|
||||
cm_strcpy(t->mytimezone, "US/Pacific");
|
||||
cm_strcpy(tmp_buf, (char*)getenv("TZ"));
|
||||
if (tmp_buf)
|
||||
cm_strcpy(t->mytimezone, tmp_buf);
|
||||
cm_strcpy(t->mytimezone, tmp_buf);
|
||||
|
||||
sprintf(buf, "%s %s", catgets(c->DT_catd, 1, 659, "Time Zone:"),
|
||||
t->mytimezone);
|
||||
|
|
Loading…
Reference in a new issue