comparison 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
comparison
equal deleted inserted replaced
17:d97ec3ded2ae 18:fa2b8af609d9
92 92
93 void *Dowa_HashMap_Get(Dowa_PHashMap p_hash_map, char *key) 93 void *Dowa_HashMap_Get(Dowa_PHashMap p_hash_map, char *key)
94 { 94 {
95 int idx_foo = Dowa_HashMap_GetPosition(p_hash_map, key); 95 int idx_foo = Dowa_HashMap_GetPosition(p_hash_map, key);
96 void *value = p_hash_map->entries[idx_foo]; 96 void *value = p_hash_map->entries[idx_foo];
97 if (strcmp(((Dowa_PHashEntry) value)->key, key) != 0) 97 if (value == NULL || strcmp(((Dowa_PHashEntry) value)->key, key) != 0)
98 { 98 {
99 return NULL; 99 return NULL;
100 } 100 }
101 return ((Dowa_PHashEntry) value)->buffer; 101 return ((Dowa_PHashEntry) value)->buffer;
102 } 102 }