Skip to content

Commit

Permalink
Initialize buffer to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Nov 29, 2024
1 parent 883f24c commit fa5e250
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reprozip/native/tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ int trace_add_files_from_proc(unsigned int process, pid_t tid,
size_t length = 0;
size_t previous_path_size = 4096;
char *previous_path = malloc(previous_path_size);
previous_path[0] = 0;

const char *const fmt = "/proc/%d/maps";
int len = snprintf(&dummy, 1, fmt, tid);
Expand Down

0 comments on commit fa5e250

Please sign in to comment.