Skip to content

Commit

Permalink
Don't add a new line to undefined tags in EXIF_DEBUG mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KalleZ committed Jul 13, 2017
1 parent 9cf586c commit bf7f6f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/exif/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down Expand Up @@ -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 "";
Expand Down

0 comments on commit bf7f6f9

Please sign in to comment.