Browse code

Merge pull request #2605 from nchaigne/master-202101-rm-by-index

core: fix to xavp_rm_internal (#2604)

Daniel-Constantin Mierla authored on 25/01/2021 09:40:13 • GitHub committed on 25/01/2021 09:40:13
Showing 1 changed files
... ...
@@ -454,6 +454,8 @@ static int xavp_rm_internal(str *name, sr_xavp_t **head, int idx)
454 454
 				if(idx>=0)
455 455
 					return 1;
456 456
 				count++;
457
+			} else {
458
+				prv = foo;
457 459
 			}
458 460
 			n++;
459 461
 		} else {
... ...
@@ -1914,6 +1916,8 @@ static int xavi_rm_internal(str *name, sr_xavp_t **head, int idx)
1914 1916
 				if(idx>=0)
1915 1917
 					return 1;
1916 1918
 				count++;
1919
+			} else {
1920
+				prv = foo;
1917 1921
 			}
1918 1922
 			n++;
1919 1923
 		} else {