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 29, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent beca0d1 commit 0b2f4d3
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
@@ -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) {

0 comments on commit 0b2f4d3

Please sign in to comment.