Mercurial
diff dowa/d_memory.c @ 18:fa2b8af609d9
[Seobeo] Fixed a bug with pathing. Support SSL.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Mon, 06 Oct 2025 08:21:34 -0700 |
| parents | 1e61008b9980 |
| children | 0a9e67c7039a |
line wrap: on
line diff
--- a/dowa/d_memory.c Sat Oct 04 07:53:12 2025 -0700 +++ b/dowa/d_memory.c Mon Oct 06 08:21:34 2025 -0700 @@ -94,7 +94,7 @@ { int idx_foo = Dowa_HashMap_GetPosition(p_hash_map, key); void *value = p_hash_map->entries[idx_foo]; - if (strcmp(((Dowa_PHashEntry) value)->key, key) != 0) + if (value == NULL || strcmp(((Dowa_PHashEntry) value)->key, key) != 0) { return NULL; }