diff options
Diffstat (limited to 'sway/commands/output/background.c')
-rw-r--r-- | sway/commands/output/background.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c index f65904bb..5a15ed0f 100644 --- a/sway/commands/output/background.c +++ b/sway/commands/output/background.c | |||
@@ -61,6 +61,9 @@ struct cmd_results *output_cmd_background(int argc, char **argv) { | |||
61 | return cmd_results_new(CMD_INVALID, | 61 | return cmd_results_new(CMD_INVALID, |
62 | "Missing background scaling mode."); | 62 | "Missing background scaling mode."); |
63 | } | 63 | } |
64 | if (j == 0) { | ||
65 | return cmd_results_new(CMD_INVALID, "Missing background file"); | ||
66 | } | ||
64 | 67 | ||
65 | wordexp_t p = {0}; | 68 | wordexp_t p = {0}; |
66 | char *src = join_args(argv, j); | 69 | char *src = join_args(argv, j); |