On 2026-09-18 1:02 p.m., Thomas Frohwein wrote:
On Fri, 18 Sep 2026 02:12:12 -0400
Brad Smith <[email protected]> wrote:

+@@ -145,6 +145,15 @@ char *SDL_GetBasePath(void)
+     }
+ #endif
+ #if defined(__OPENBSD__)
++#ifdef HAVE_GETEXECPATH
++    char fullpath[PATH_MAX];
++    if (getexecpath(fullpath, sizeof(fullpath)) == 0) {
++        result = SDL_strdup(fullpath);
             ^^^^^^

++        if (!result) {
                  ^^^^^^

Pretty sure from reading the code in this file that this needs to be
"retval" instead of "result". That's what's defined at the beginning of
the function and returned at the end.

Oops, I had missed updating the diff I had made before sending.

++            return NULL;
++        }
++    }
++#else

Reply via email to