diff options
Diffstat (limited to 'swaylock')
-rw-r--r-- | swaylock/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaylock/main.c b/swaylock/main.c index 3d57eb75..ebd87d32 100644 --- a/swaylock/main.c +++ b/swaylock/main.c | |||
@@ -716,7 +716,7 @@ static char *get_config_path(void) { | |||
716 | 716 | ||
717 | wordexp_t p; | 717 | wordexp_t p; |
718 | char *path; | 718 | char *path; |
719 | for (int i = 0; i < (int)(sizeof(config_paths) / sizeof(char *)); ++i) { | 719 | for (size_t i = 0; i < (int)(sizeof(config_paths) / sizeof(char *)); ++i) { |
720 | if (wordexp(config_paths[i], &p, 0) == 0) { | 720 | if (wordexp(config_paths[i], &p, 0) == 0) { |
721 | path = strdup(p.we_wordv[0]); | 721 | path = strdup(p.we_wordv[0]); |
722 | wordfree(&p); | 722 | wordfree(&p); |