From 64c6863264cd7789e8fbd761d9d2f3baabecf0c1 Mon Sep 17 00:00:00 2001 From: Deborah Goldsmith Date: Tue, 5 Jun 2007 02:22:42 +0000 Subject: [PATCH] ICU-5429 Fix disk space leak with UCONFIG_NO_TRANSLITERATION X-SVN-Rev: 21630 --- icu4c/source/tools/genrb/parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/tools/genrb/parse.c b/icu4c/source/tools/genrb/parse.c index b4aa2caf0e..a8e6d8255a 100644 --- a/icu4c/source/tools/genrb/parse.c +++ b/icu4c/source/tools/genrb/parse.c @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 1998-2006, International Business Machines +* Copyright (C) 1998-2007, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -465,6 +465,7 @@ parseTransliterator(char *tag, uint32_t startline, const struct UString* comment #if !UCONFIG_NO_TRANSLITERATION size = utrans_stripRules(pSource, size, pTarget, status); #else + size = 0; fprintf(stderr, " Warning: writing empty transliteration data ( UCONFIG_NO_TRANSLITERATION ) \n"); #endif result = string_open(bundle, tag, pTarget, size, NULL, status);