From: Kalle Sommer Nielsen Date: Thu, 13 Jul 2017 23:17:34 +0000 (+0200) Subject: Don't add a new line to undefined tags in EXIF_DEBUG mode X-Git-Tag: php-7.2.0beta1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf7f6f9078b535ffa70808d9700d7bed121b230d;p=php Don't add a new line to undefined tags in EXIF_DEBUG mode --- diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 63b23d2f8c..cc42abd5bf 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -49,6 +49,8 @@ */ #undef EXIF_DEBUG +#define EXIF_DEBUG 1 + #ifdef EXIF_DEBUG #define EXIFERR_DC , const char *_file, size_t _line #define EXIFERR_CC , __FILE__, __LINE__ @@ -1552,7 +1554,7 @@ char * exif_dump_data(int *dump_free, int format, int components, int length, in return value_ptr ? value_ptr : ""; } if (format == TAG_FMT_UNDEFINED) { - return "\n"; + return ""; } if (format == TAG_FMT_IFD) { return "";