Skip to content

Commit

Permalink
eliminate compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerrg committed Jan 24, 2025
1 parent 0955250 commit 29ca5e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c/self-exe.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static char *wide_to_utf8(const wchar_t *arg) {
static char *get_process_executable_path(const char *exec_file) {
wchar_t *path = NULL;
DWORD n, sz;
(void)exec_file;
for (n = 0, sz = 256;; sz *= 2) {
path = (wchar_t *)malloc(sz * sizeof(wchar_t));
if (path == NULL) {
Expand Down

0 comments on commit 29ca5e5

Please sign in to comment.