|
@@ -151,6 +151,7 @@ int handler_game_list(int cliId, JsonParser* json) {
|
|
|
add_string(&reponse, "message", "ok");
|
|
|
if (nb == 0) {
|
|
|
add_integer(&reponse, "numberGameList", 0);
|
|
|
+ add_value(&reponse, ", \"games\": []");
|
|
|
} else {
|
|
|
add_integer(&reponse, "numberGameList", nb);
|
|
|
add_array(&reponse, "games", &game);
|