]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
[rgw] Set initialized to true after populating table in hex_to_num()
authorRay Lv <xiangyulv@gmail.com>
Tue, 29 Oct 2013 11:34:51 +0000 (19:34 +0800)
committerSage Weil <sage@inktank.com>
Fri, 1 Nov 2013 23:03:38 +0000 (16:03 -0700)
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_common.cc

index cb87c18b93d71898c55cd52cab51969dbeb0ffd4..e989fa3242cdcecc0b4902b5d08e3ee32adc3654 100644 (file)
@@ -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];
 }