Fixed pattern decoding

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Avoid variable not initialized warning

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>