Skip to content

Commit bf7f6f9

Browse files
committed
Don't add a new line to undefined tags in EXIF_DEBUG mode
1 parent 9cf586c commit bf7f6f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/exif/exif.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
*/
5050
#undef EXIF_DEBUG
5151

52+
#define EXIF_DEBUG 1
53+
5254
#ifdef EXIF_DEBUG
5355
#define EXIFERR_DC , const char *_file, size_t _line
5456
#define EXIFERR_CC , __FILE__, __LINE__
@@ -1552,7 +1554,7 @@ char * exif_dump_data(int *dump_free, int format, int components, int length, in
15521554
return value_ptr ? value_ptr : "<no data>";
15531555
}
15541556
if (format == TAG_FMT_UNDEFINED) {
1555-
return "<undefined>\n";
1557+
return "<undefined>";
15561558
}
15571559
if (format == TAG_FMT_IFD) {
15581560
return "";

0 commit comments

Comments
 (0)