]> granicus.if.org Git - php/commitdiff
Don't add a new line to undefined tags in EXIF_DEBUG mode
authorKalle Sommer Nielsen <kalle@php.net>
Thu, 13 Jul 2017 23:17:34 +0000 (01:17 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Thu, 13 Jul 2017 23:17:34 +0000 (01:17 +0200)
ext/exif/exif.c

index 63b23d2f8cd37929dd39b8b960580b535b71d197..cc42abd5bff4f8114c8b500b9064a46cc8c4bb91 100644 (file)
@@ -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 : "<no data>";
        }
        if (format == TAG_FMT_UNDEFINED) {
-               return "<undefined>\n";
+               return "<undefined>";
        }
        if (format == TAG_FMT_IFD) {
                return "";