duplicate strdup is no good.

This commit is contained in:
Enno Rehling 2005-05-11 20:03:46 +00:00
parent 2e7e23ad97
commit d72f078d55
1 changed files with 1 additions and 3 deletions

View File

@ -230,13 +230,11 @@ parse_order(const char * s, const struct locale * lang)
#ifdef SHORT_STRINGS
if (kwd!=NOKEYWORD) {
if (*sptr) s = strdup(sptr);
else s = NULL;
s = (*sptr)?sptr:NULL;
}
#else
ord->data->_str = strdup(s);
#endif
ord->data = create_data(kwd, s, sptr, lindex);
return ord;