summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_video.c b/src/i_video.c
index 0e66154e..bbf35326 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1114,7 +1114,7 @@ static void SetSDLVideoDriver(void)
char *env_string;
env_string = malloc(strlen(video_driver) + 30);
- sprintf(env_string, "SDL_VIDEODRIVER=%s", env_string);
+ sprintf(env_string, "SDL_VIDEODRIVER=%s", video_driver);
putenv(env_string);
free(env_string);
}