1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 17:23:13 +02:00

Fix compile warning due to latest additions.

This commit is contained in:
Bram Matthys
2023-03-17 11:06:12 +01:00
parent 395a9dfc41
commit 2a98802d09
+3 -3
View File
@@ -1655,15 +1655,15 @@ void mm_parse_c_file(int argc, char *args[])
int mm_detect_make_is_gmake(void)
{
FILE *fd;
char buf[512];
char buf[512], *s;
fd = popen("$MAKE --version 2>&1", "r");
if (fd)
{
*buf = '\0';
fgets(buf, sizeof(buf), fd);
s = fgets(buf, sizeof(buf), fd);
pclose(fd);
if (strstr(buf, "GNU Make"))
if (s && strstr(s, "GNU Make"))
return 1; /* Good! We are done. */
}
return 0;