From a8ccc2aa89c78108566c67b9e853797ea451f9c8 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Fri, 24 May 2024 10:20:25 +0200 Subject: FIX GCC Warnings, added more checking to gcc flags --- modules/network/samba.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/network/samba.c') diff --git a/modules/network/samba.c b/modules/network/samba.c index e14742ea..7edcbe0b 100644 --- a/modules/network/samba.c +++ b/modules/network/samba.c @@ -50,7 +50,6 @@ scan_samba(void) void scan_samba_usershares(void) { - FILE *usershare_list; gboolean spawned; int status; gchar *out, *err, *p, *next_nl; @@ -63,7 +62,7 @@ scan_samba_usershares(void) if (spawned && status == 0 && out != NULL) { shell_status_update("Scanning SAMBA user shares..."); p = out; - while(next_nl = strchr(p, '\n')) { + while((next_nl = strchr(p, '\n'))) { cmdline = g_strdup_printf("net usershare info '%s'", strend(p, '\n')); if (hardinfo_spawn_command_line_sync(cmdline, -- cgit v1.2.3