Browse code

pua_dialoginfo: use dlg api function get_dlg_varref()

- manual update to the new dlg api function replacing the old
get_dlg_var()

Daniel-Constantin Mierla authored on 27/09/2022 10:11:11
Showing 1 changed files
... ...
@@ -559,7 +559,7 @@ struct dlginfo_cell* get_dialog_data(struct dlg_cell *dlg, int type, int disable
559 559
 
560 560
 		} else {
561 561
 			if(caller_dlg_var.len>0
562
-					&& (s = dlg_api.get_dlg_var(dlg, &caller_dlg_var))!=0) {
562
+					&& (s = dlg_api.get_dlg_varref(dlg, &caller_dlg_var))!=0) {
563 563
 				dlginfo->pubruris_caller =
564 564
 					(struct str_list*)shm_malloc(sizeof(struct str_list) + s->len + 1);
565 565
 				if (dlginfo->pubruris_caller==0) {
... ...
@@ -578,7 +578,7 @@ struct dlginfo_cell* get_dialog_data(struct dlg_cell *dlg, int type, int disable
578 578
 			}
579 579
 
580 580
 			if(callee_dlg_var.len>0
581
-					&& (s = dlg_api.get_dlg_var(dlg, &callee_dlg_var))!=0) {
581
+					&& (s = dlg_api.get_dlg_varref(dlg, &callee_dlg_var))!=0) {
582 582
 				dlginfo->pubruris_callee =
583 583
 					(struct str_list*)shm_malloc(sizeof(struct str_list) + s->len + 1);
584 584
 				if (dlginfo->pubruris_callee==0) {