diff options
author | Adam Chlipala <adamc@csail.mit.edu> | 2016-05-29 16:57:52 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@csail.mit.edu> | 2016-05-29 16:57:52 -0400 |
commit | 03fc0ee4df923b9daee783aaec04ed0f2178143b (patch) | |
tree | a6349e5ca8051ffc20d79d41e8f212f8eb7462e1 | |
parent | f4c8df8e16524cf9ab7a9ab6ff6824ef5055b21c (diff) | |
parent | dc5c6ddd7518d43e3483b26c2721a54c6d74a086 (diff) |
Merge pull request #28 from extensibl/master
Silence gcc warnings
-rw-r--r-- | src/c/urweb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 6eb3c21c..286ec7be 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -4761,7 +4761,7 @@ uw_Sqlcache_Value *uw_Sqlcache_check(uw_context ctx, uw_Sqlcache_Cache *cache, c char *key = uw_Sqlcache_allocKeyBuffer(keys, numKeys); char *buf = key; time_t timeInvalid = cache->timeInvalid; - uw_Sqlcache_Entry *entry; + uw_Sqlcache_Entry *entry = NULL; if (numKeys == 0) { entry = cache->table; if (!entry) { @@ -4796,7 +4796,7 @@ static void uw_Sqlcache_storeCommitOne(uw_Sqlcache_Cache *cache, char **keys, uw pthread_rwlock_wrlock(&cache->lockIn); size_t numKeys = cache->numKeys; time_t timeNow = uw_Sqlcache_getTimeNow(cache); - uw_Sqlcache_Entry *entry; + uw_Sqlcache_Entry *entry = NULL; if (numKeys == 0) { entry = cache->table; if (!entry) { |