init_by_options: don't copy an empty sortlist
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Oct 2010 17:36:17 +0000 (19:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Oct 2010 17:40:35 +0000 (19:40 +0200)
commit803e2a28b7644691c0a55fa52b56229d10564735
tree263dbf458aab6da28f9cd4b9e5fa097c91219422
parent679c1032cb2ef153414b7999bc43ae3d31beda79
init_by_options: don't copy an empty sortlist

If there aren't any sort items to copy, don't bother. Without this
little precaution it would do a malloc(0) which causes undefined
behaviors and is frowned upon by curl's memdebug-system.
ares_init.c