Browse Source

backport this piece from 5.6, related to the #66307 fix

pull/695/head
Anatol Belski 12 years ago
committed by Stanislav Malyshev
parent
commit
d184f07b3c
  1. 3
      ext/fileinfo/libmagic/readcdf.c

3
ext/fileinfo/libmagic/readcdf.c

@ -149,7 +149,8 @@ cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info,
return -1;
}
c = cdf_ctime(&sec, tbuf);
if ((ec = strchr(c, '\n')) != NULL)
if (c != NULL &&
(ec = strchr(c, '\n')) != NULL)
*ec = '\0';
if (NOTMIME(ms) && file_printf(ms,

Loading…
Cancel
Save