diff options
| author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-12-20 12:29:13 -0200 |
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-12-20 12:29:13 -0200 |
| commit | 16ca3666bf8c2a9082ee92f6317819a34eb2b6ff (patch) | |
| tree | 0ca165e8dffd38cdf3fd2a35ee5d514720bb01df /libkmod/libkmod.c | |
| parent | 76b8031bce288a4052cea5e9fb7cfb7ccde9ca3e (diff) | |
| download | kmod-16ca3666bf8c2a9082ee92f6317819a34eb2b6ff.tar.gz | |
Fix check for opened indexes
Diffstat (limited to 'libkmod/libkmod.c')
| -rw-r--r-- | libkmod/libkmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c index 87c9a3d..b519b90 100644 --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -691,7 +691,7 @@ KMOD_EXPORT int kmod_load_resources(struct kmod_ctx *ctx) for (i = 0; i < ARRAY_SIZE(index_files); i++) { char path[PATH_MAX]; - if (ctx->indexes[i] == NULL) { + if (ctx->indexes[i] != NULL) { INFO(ctx, "Index %s already loaded\n", index_files[i]); continue; } |
