Просмотр исходного кода

Avoid crashing due to different ptr for key creating empty set

Bryan Drewery 11 лет назад
Родитель
Сommit
1e8aa62971
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/response.cc

+ 2 - 1
src/response.cc

@@ -9,9 +9,10 @@
 #include "response.h"
 #include "responses.cc"
 #include <bdlib/src/HashTable.h>
+#include <bdlib/src/String.h>
 #include <vector>
 
-static bd::HashTable<const char*, std::vector<const char*> > res_map;
+static bd::HashTable<bd::String, std::vector<const char*> > res_map;
 
 void
 init_responses()