osl.c: Fix assertion in create_table_index().
[osl.git] / osl.c
diff --git a/osl.c b/osl.c
index 0a2863d..4569b1b 100644 (file)
--- a/osl.c
+++ b/osl.c
@@ -516,7 +516,7 @@ static int create_table_index(struct osl_table *t)
                strcpy(buf + offset + IDX_CD_NAME, cd->name);
                offset += index_column_description_size(cd->name);
        }
-       assert(offset = size);
+       assert(offset == size);
        filename = index_filename(t->desc);
        if (filename)
                ret = write_file(filename, buf, size);