commit 89640379b5e995e3d0c077a4a2b4b1243020dc7e
parent 1fc3563bc8a3efeac072e76d69918832b4da154b
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
@@ -1570,6 +1570,7 @@ runautostart(void)
char *xdgdatahome;
char *home;
struct stat sb;
+ int result;
if ((home = getenv("HOME")) == NULL)
/* this is almost impossible */
@@ -1624,7 +1625,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) {
@@ -1633,8 +1634,9 @@ runautostart(void)
}
if (access(path, X_OK) == 0)
- system(strcat(path, " &"));
+ result = system(strcat(path, " &"));
+ (void)result;
free(pathpfx);
free(path);
}