summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'example.c')
-rw-r--r--example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.c b/example.c
index 7878806..7c3f353 100644
--- a/example.c
+++ b/example.c
@@ -11,7 +11,7 @@ int main(void) {
c = redisConnect((char*)"127.0.0.1", 6379, NULL);
if (c->error != NULL) {
- printf("Connection error: %s", ((redisReply*)c->error)->reply);
+ printf("Connection error: %s", c->error);
exit(1);
}