Resolve compilation error with G++ 4.9.
authorTom Sepez <tsepez@chromium.org>
Wed, 29 Oct 2014 22:31:20 +0000 (15:31 -0700)
committerTom Sepez <tsepez@chromium.org>
Wed, 29 Oct 2014 22:31:20 +0000 (15:31 -0700)
commitf3a5d3ddf7b492e5e8f64cb2ee98a53b5520499d
treefca515b67e8a1501171657ad4f9317e6a458a052
parent4dc95e74e1acc75f4eab08bc771874cd2a9c3a9b
Resolve compilation error with G++ 4.9.

Add a check for zero-length keys to avoid hitting the equivalent of |""[1]|.
BUG=https://code.google.com/p/pdfium/issues/detail?id=58
R=jun_fang@foxitsoftware.com

Review URL: https://codereview.chromium.org/665223003
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp