added comment

This commit is contained in:
Frank Warmerdam 2002-08-15 12:59:50 +00:00
parent e73fae909d
commit f8a0f2f641

View File

@ -1,4 +1,4 @@
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_dirinfo.c,v 1.17 2002-04-17 13:09:04 dron Exp $ */ /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_dirinfo.c,v 1.18 2002-08-15 12:59:50 warmerda Exp $ */
/* /*
* Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1988-1997 Sam Leffler
@ -463,6 +463,8 @@ _TIFFCreateAnonFieldInfo(TIFF *tif, ttag_t tag, TIFFDataType field_type)
fld->field_oktochange = TRUE; fld->field_oktochange = TRUE;
fld->field_passcount = TRUE; fld->field_passcount = TRUE;
fld->field_name = (char *) _TIFFmalloc(32); fld->field_name = (char *) _TIFFmalloc(32);
/* note that this name is a special sign to TIFFClose() to free the field*/
sprintf(fld->field_name, "Tag %d", (int) tag); sprintf(fld->field_name, "Tag %d", (int) tag);
return fld; return fld;