projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b0595
)
zip-reader: Use xstrdup() instead of strdup().
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 10 Jul 2017 20:49:13 +0000
(13:49 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 10 Jul 2017 20:49:13 +0000
(13:49 -0700)
src/libpspp/zip-reader.c
patch
|
blob
|
history
diff --git
a/src/libpspp/zip-reader.c
b/src/libpspp/zip-reader.c
index 13986cbeca21ac51ce6ef856cb37c1f70d6ff1e2..4810ae53378c4dda4b98426f809002c4f1c3ad1e 100644
(file)
--- a/
src/libpspp/zip-reader.c
+++ b/
src/libpspp/zip-reader.c
@@
-378,7
+378,7
@@
zip_reader_create (const char *filename, struct string *errs)
zr->members = xcalloc (zr->n_members, sizeof (*zr->members));
memset (zr->members, 0, zr->n_members * sizeof (*zr->members));
- zr->filename = strdup (filename);
+ zr->filename =
x
strdup (filename);
return zr;
}