We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d41d7a commit 0174878Copy full SHA for 0174878
1 file changed
Hashtable.c
@@ -173,9 +173,7 @@ static inline bool Hashtable_shouldResize(const Hashtable* this) {
173
174
Hashtable* Hashtable_new(size_t size, bool owner) {
175
assert(MIN_TABLE_SIZE == primes[0]);
176
- Hashtable* this;
177
-
178
- this = xMalloc(sizeof(Hashtable));
+ Hashtable* this = xMalloc(sizeof(Hashtable));
179
this->size = nextPrime(size);
180
this->items = 0;
181
this->buckets = (HashtableItem*) xCalloc(this->size, sizeof(HashtableItem));
0 commit comments