forked from github/server
duplicate strdup is no good.
This commit is contained in:
parent
2e7e23ad97
commit
d72f078d55
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue