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 #ifdef SHORT_STRINGS
if (kwd!=NOKEYWORD) { if (kwd!=NOKEYWORD) {
if (*sptr) s = strdup(sptr); s = (*sptr)?sptr:NULL;
else s = NULL;
} }
#else #else
ord->data->_str = strdup(s); ord->data->_str = strdup(s);
#endif #endif
ord->data = create_data(kwd, s, sptr, lindex); ord->data = create_data(kwd, s, sptr, lindex);
return ord; return ord;