git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d16b81c
)
lib:ldb: Use correct C99 initializer for 'struct tm'
author
Andreas Schneider
<asn@samba.org>
Mon, 14 Jan 2019 11:10:34 +0000
(12:10 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 26 Feb 2019 12:00:11 +0000
(13:00 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit
146ed0894e640fe1791f75fa8f50167b6cdfc06e
)
lib/ldb/common/ldb_msg.c
patch
|
blob
|
history
diff --git
a/lib/ldb/common/ldb_msg.c
b/lib/ldb/common/ldb_msg.c
index c2782db6fb2f2891def688ca9ecb1721bf5aa346..b51e4b1059ea7b26f6cf8699fa7d570076e2f868 100644
(file)
--- a/
lib/ldb/common/ldb_msg.c
+++ b/
lib/ldb/common/ldb_msg.c
@@
-1303,8
+1303,10
@@
time_t ldb_string_to_time(const char *s)
*/
int ldb_val_to_time(const struct ldb_val *v, time_t *t)
{
- char val[15] = {};
- struct tm tm = {};
+ char val[15] = {0};
+ struct tm tm = {
+ .tm_year = 0,
+ };
if (v == NULL) {
return LDB_ERR_INVALID_ATTRIBUTE_SYNTAX;