projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d332ae
)
Merge from gnulib
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 31 Jul 2015 16:44:47 +0000
(09:44 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 31 Jul 2015 16:47:18 +0000
(09:47 -0700)
This incorporates:
2015-07-29 time_rz: port to pedantic memcpy
* lib/time_rz.c: Copy from gnulib.
lib/time_rz.c
patch
|
blob
|
history
diff --git
a/lib/time_rz.c
b/lib/time_rz.c
index cbbe2c6ac2faa123d5486e74228bd713e7e02dda..f94893aa2c18afe9a2954384ed24433880aac6f3 100644
(file)
--- a/
lib/time_rz.c
+++ b/
lib/time_rz.c
@@
-105,7
+105,9
@@
tzalloc (char const *name)
tz->tzname_copy[0] = tz->tzname_copy[1] = NULL;
#endif
tz->tz_is_set = !!name;
- extend_abbrs (tz->abbrs, name, name_size);
+ tz->abbrs[0] = '\0';
+ if (name)
+ extend_abbrs (tz->abbrs, name, name_size);
}
return tz;
}