summaryrefslogtreecommitdiffstats
path: root/src/util/et/error_table.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/et/error_table.y')
-rw-r--r--src/util/et/error_table.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/et/error_table.y b/src/util/et/error_table.y
index f6b082fd49..6162d61b52 100644
--- a/src/util/et/error_table.y
+++ b/src/util/et/error_table.y
@@ -100,10 +100,7 @@ char *
ds(string)
char const *string;
{
- char *rv;
- rv = malloc(strlen(string)+1);
- strcpy(rv, string);
- return(rv);
+ return strdup(string);
}
char *