dwm

Fork of suckless' dwm with my personal patches
git clone https://git.instinctive.eu/dwm.git
Log | Files | Refs | README | LICENSE

commit 62c6235e4942726bbae5e19bc2807626e03860ca
parent 905f4d544b75e919bd9eb4d42c91f36e78e9e3e7
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date:   Sun, 21 May 2023 00:28:17 +0200

[nat] fix warning from autostart patch

Diffstat:
Mdwm.c | 6++++--
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); }