summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostNaN <GhostNaN@protonmail.com>2024-01-27 19:44:27 -0500
committerGhostNaN <GhostNaN@protonmail.com>2024-01-27 19:44:27 -0500
commit1e6e1b432a7fef3b4710161049f5b1ed3cca1bd7 (patch)
tree3b0b6e92cb8b79fe02badcca10961bc786744b06
parentda1a3d42a6ea9f66c6fa4069a754ab71559d705a (diff)
And check for empty mpv_options
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fbb3fcb..742b450 100644
--- a/src/main.c
+++ b/src/main.c
@@ -424,7 +424,7 @@ static void set_init_mpv_options(const struct wl_state *state) {
}
// Set mpv_options passed
- if (mpv_options) {
+ if (strcmp(mpv_options, "") != 0) {
// Create config file name
char *opt_config_path = calloc(strlen("/tmp/mpvpaper.config")+1 + strlen(state->monitor)+1, sizeof(char));
strcpy(opt_config_path, "/tmp/mpvpaper");