/* Check if file extension is used in this heuristic  */
static gboolean heuristic_uses_extension(unsigned int i, const char *extension)
/* Check if file extension is used in this heuristic  */
static gboolean heuristic_uses_extension(unsigned int i, const char *extension)
{
	gchar **extensionp;
	if (open_routines[i].extensions == NULL)
		return FALSE;
	for (extensionp = open_routines[i].extensions_set; *extensionp != NULL;
	    extensionp++) {
		if (strcmp(extension, *extensionp) == 0) {
			return TRUE;
		}
	}
	return FALSE;
}