summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-15 21:53:22 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-15 21:53:22 +0100
commit09a0fe626fa7d53666a3fa53aca79880f8fe3bff (patch)
tree19e9d88dbf009d2b029b7716ba7923cbeee912ca /async.h
parent0b27639e0974df09e631cafebc46e43cf1a2f018 (diff)
Explicitly initialize struct fields to NULL
Diffstat (limited to 'async.h')
-rw-r--r--async.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/async.h b/async.h
index d0a99da..be3a7a9 100644
--- a/async.h
+++ b/async.h
@@ -58,6 +58,9 @@ typedef struct redisAsyncContext {
int err;
char *errstr;
+ /* Not used by hiredis */
+ void *data;
+
/* Called when the library expects to start reading/writing.
* The supplied functions should be idempotent. */
void (*evAddRead)(void *privdata);
@@ -65,7 +68,6 @@ typedef struct redisAsyncContext {
void (*evAddWrite)(void *privdata);
void (*evDelWrite)(void *privdata);
void (*evCleanup)(void *privdata);
- void *data;
/* Called when either the connection is terminated due to an error or per
* user request. The status is set accordingly (REDIS_OK, REDIS_ERR). */