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
|
#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;
|
||||||
|
|
Loading…
Reference in New Issue