From 1f101bcb3952ce79440d0236313f3ed11cba2aaa Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 30 Jun 2007 01:31:54 +0000 Subject: Cleanups, fix crashes. --- hardinfo2/arch/common/users.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'hardinfo2/arch/common') diff --git a/hardinfo2/arch/common/users.h b/hardinfo2/arch/common/users.h index 84cec9d9..5889dc0a 100644 --- a/hardinfo2/arch/common/users.h +++ b/hardinfo2/arch/common/users.h @@ -4,14 +4,7 @@ static gchar *sys_users = NULL, static gboolean remove_users(gpointer key, gpointer value, gpointer data) { - if (!strncmp((gchar *) key, "USER", 4)) { - /* - * g_free((gchar *) key); - * g_free((GtkTreeIter *) value); - */ - return TRUE; - } - return FALSE; + return g_str_has_prefix(key, "USER"); } static void -- cgit v1.2.3