Added (const char*) before NULL string at check_table_fields function calls