commit 8f8bbf57c057e8aa66ac819a2a4118973d7cd6e8
parent a7b6d5f596341af40873ca76d0d5f359d4c5c49e
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date: Sun, 21 May 2023 00:28:17 +0200
[nat] fix warning from autostart patch
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -1571,6 +1571,7 @@ runautostart(void)
char *xdgdatahome;
char *home;
struct stat sb;
+ int result;
if ((home = getenv("HOME")) == NULL)
/* this is almost impossible */
@@ -1625,7 +1626,7 @@ runautostart(void)
}
if (access(path, X_OK) == 0)
- system(path);
+ result = system(path);
/* now the non-blocking script */
if (sprintf(path, "%s/%s", pathpfx, autostartsh) <= 0) {
@@ -1634,8 +1635,9 @@ runautostart(void)
}
if (access(path, X_OK) == 0)
- system(strcat(path, " &"));
+ result = system(strcat(path, " &"));
+ (void)result;
free(pathpfx);
free(path);
}