From: Peter Verthez Date: Sun, 26 Jan 2003 09:41:04 +0000 (+0000) Subject: Fix for const correctness. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=72bf48ecdfeb265665a04fc29f8703902bc296ed;p=gedcom-parse.git Fix for const correctness. --- diff --git a/gedcom/age.c b/gedcom/age.c index 9429ff8..705a237 100644 --- a/gedcom/age.c +++ b/gedcom/age.c @@ -170,7 +170,8 @@ char* gedcom_age_to_string(const struct age_value* val) switch (val->type) { case AGE_UNRECOGNIZED: - return val->phrase; break; + reset_buffer(&age_buffer); + safe_buf_append(&age_buffer, val->phrase); break; case AGE_CHILD: safe_buf_append(&age_buffer, "CHILD"); break; case AGE_INFANT: