debugedit: Make sure .debug_line old/new idx start equal.

Found by running the debugedit tests under valgrind.
If the old and new .debug_line offset isn't changed then we might
write out an uninitialized new_idx.
This commit is contained in:
Mark Wielaard 2019-06-17 11:23:26 +02:00 committed by Panu Matilainen
parent 15118eb683
commit add384514f

View File

@ -1177,6 +1177,7 @@ get_line_table (DSO *dso, size_t off, struct line_table **table)
*table = NULL;
t->old_idx = off;
t->new_idx = off;
t->size_diff = 0;
t->replace_dirs = false;
t->replace_files = false;