summaryrefslogtreecommitdiffstats
path: root/kernel/scripts/mod/file2alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/scripts/mod/file2alias.c')
-rw-r--r--kernel/scripts/mod/file2alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/scripts/mod/file2alias.c b/kernel/scripts/mod/file2alias.c
index 5b96206e9..9f5cdd49f 100644
--- a/kernel/scripts/mod/file2alias.c
+++ b/kernel/scripts/mod/file2alias.c
@@ -695,7 +695,7 @@ static int do_of_entry (const char *filename, void *symval, char *alias)
len = sprintf(alias, "of:N%sT%s", (*name)[0] ? *name : "*",
(*type)[0] ? *type : "*");
- if (compatible[0])
+ if ((*compatible)[0])
sprintf(&alias[len], "%sC%s", (*type)[0] ? "*" : "",
*compatible);