Fix segfault. Initialize slash_* and search some of the slash patterns.