home · contact · privacy
Unify Map struct common to server and client in src/common/map.h.
[plomrogue] / src / server / field_of_view.c
index afb25f543f52f64c4a1dffb8585d53c39c089285..61ebf88df183ca649b28aef4d5d5eb7da0b09e01 100644 (file)
@@ -383,7 +383,7 @@ static char * eye_to_cell(struct yx_uint8 * yx_eye, struct yx_uint8 * yx_cell,
     int16_t diff_x = yx_cell->x - yx_eye->x;
     uint8_t indent = yx_eye->y % 2;
     char * dir = dir_from_delta(indent, diff_y, diff_x);
-    char * dirs;
+    char * dirs = NULL;
     if (1 == strlen(dir))
     {
         return strdup(dir);