aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common/modules.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-16 17:53:16 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-16 17:53:16 +0000
commite46568349c49cadc870f5c0fc84dcce2f7c461b1 (patch)
tree139332ea64b814967711035cf388438a2c9fa302 /hardinfo2/arch/linux/common/modules.h
parent3722c94e232b39d2a05ef359a60d25ac0cbe7887 (diff)
Use g_str_equal instead of strcmp.
About box cleanups Use g_build_filename instead of building paths on my own Better BinReloc support (should work even if binreloc initialization fails)
Diffstat (limited to 'hardinfo2/arch/linux/common/modules.h')
-rw-r--r--hardinfo2/arch/linux/common/modules.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/modules.h b/hardinfo2/arch/linux/common/modules.h
index 69f7ebd6..9c335f18 100644
--- a/hardinfo2/arch/linux/common/modules.h
+++ b/hardinfo2/arch/linux/common/modules.h
@@ -72,7 +72,7 @@ scan_modules(void)
/* old modutils displays <none> when there's no value for a
given field; this is not desirable in the module name
display, so change it to an empty string */
- if (description && !strcmp(description, "&lt;none&gt;")) {
+ if (description && g_str_equal(description, "&lt;none&gt;")) {
g_free(description);
description = g_strdup("");
}