From: Ben Pfaff Date: Mon, 10 Jul 2017 20:49:13 +0000 (-0700) Subject: zip-reader: Use xstrdup() instead of strdup(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a26a3f5ee6af08b1050a952621a363923193592;p=pspp zip-reader: Use xstrdup() instead of strdup(). --- diff --git a/src/libpspp/zip-reader.c b/src/libpspp/zip-reader.c index 13986cbeca..4810ae5337 100644 --- 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 = xstrdup (filename); return zr; }