From a99a20311add18b4f68d100eebc4461a9fb094aa Mon Sep 17 00:00:00 2001 From: "dsites@google.com" Date: Tue, 2 Jul 2013 22:58:59 +0000 Subject: [PATCH] Add return 0 in hex_digit_to_int git-svn-id: https://cld2.googlecode.com/svn/trunk@6 b252ecd4-b096-bf77-eb8e-91563289f87e --- internal/getonescriptspan.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/getonescriptspan.cc b/internal/getonescriptspan.cc index 3d93a40..73aa033 100644 --- a/internal/getonescriptspan.cc +++ b/internal/getonescriptspan.cc @@ -328,6 +328,7 @@ int hex_digit_to_int(char c) { if (('0' <= c) && (c <= '9')) {return c - '0';} if (('a' <= c) && (c <= 'f')) {return c - 'a' + 10;} if (('A' <= c) && (c <= 'F')) {return c - 'A' + 10;} + return 0; } static int32 strto32_base10(const char* nptr, const char* limit,