From: Ray Lv Date: Tue, 29 Oct 2013 11:34:51 +0000 (+0800) Subject: [rgw] Set initialized to true after populating table in hex_to_num() X-Git-Tag: v0.72~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=148023d3c634611e7f75e2ca9fd0f7047a2364cf;p=ceph.git [rgw] Set initialized to true after populating table in hex_to_num() Reviewed-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index cb87c18b93d7..e989fa3242cd 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -663,6 +663,8 @@ static char hex_to_num(char c) table[i] = i - 'A' + 0xa; for (i = 'a'; i<='f'; i++) table[i] = i - 'a' + 0xa; + + initialized = true; } return table[(int)c]; }