Skip to content

Commit

Permalink
proc-modules: Initialize char *line = 0 (NULL)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Feb 6, 2024
1 parent 843e00a commit 79e77bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proc-modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
unsigned long get_addr_proc_modules() {
FILE *f;
char *endptr;
char *line;
char *line = 0;
char *addr_buf;
size_t size = 0;
const char *path = "/proc/modules";
Expand Down

0 comments on commit 79e77bc

Please sign in to comment.