Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
5a46b311
Commit
5a46b311
authored
Jul 05, 2011
by
Pieter Noordhuis
Browse files
Fill log with non-zero to be able to test for 0
parent
acf174fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/parser.c
View file @
5a46b311
...
@@ -35,7 +35,7 @@ static log_entry_t cb_log[CB_LOG_SIZE];
...
@@ -35,7 +35,7 @@ static log_entry_t cb_log[CB_LOG_SIZE];
static
int
cb_log_idx
=
0
;
static
int
cb_log_idx
=
0
;
#define reset_cb_log() do { \
#define reset_cb_log() do { \
memset(cb_log, 0, sizeof(cb_log)); \
memset(cb_log, 0
xff
, sizeof(cb_log)); \
cb_log_idx = 0; \
cb_log_idx = 0; \
} while(0)
} while(0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment