tester: allow dns hosts path to be absolute

This commit is contained in:
Gautier Pelloux-Prayer 2016-08-04 15:14:18 +02:00
parent 19384ed6de
commit e6713204fe

View file

@ -138,7 +138,7 @@ LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char* path, c
ringbackpath = ms_strdup_printf("%s/sounds/ringback.wav", path);
nowebcampath = ms_strdup_printf("%s/images/nowebcamCIF.jpg", path);
rootcapath = ms_strdup_printf("%s/certificates/cn/cafile.pem", path);
dnsuserhostspath = ms_strdup_printf("%s/%s", path, userhostsfile);
dnsuserhostspath = userhostsfile[0]=='/' ? ms_strdup(userhostsfile) : ms_strdup_printf("%s/%s", path, userhostsfile);
if( config != NULL ) {