Skip to content

Commit

Permalink
win32-launcher: Fix crash when Python is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Aug 31, 2016
1 parent f800ce7 commit 5ea8a98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/win32-launcher/gpodder.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ get_python_install_path()
char *FindPythonDLL()
{
char *path = get_python_install_path();
if (path == NULL) {
return NULL;
}

static const char *python27_dll = "\\python27.dll";
char *result = malloc(strlen(path) + strlen(python27_dll) + 1);
sprintf(result, "%s%s", path, python27_dll);
Expand Down

0 comments on commit 5ea8a98

Please sign in to comment.