summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index 702e2dd766..0f0ac72419 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -129,7 +129,7 @@ static char *create_fname(struct MPContext *mpctx, char *template,
struct tm *local_time = localtime(&raw_time);
if (!template || *template == '\0')
- template = "shot%n";
+ return NULL;
for (;;) {
char *next = strchr(template, '%');