git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples/l2fwd-crypto: fix uninitialized errno value
[dpdk.git]
/
examples
/
l2fwd-crypto
/
main.c
diff --git
a/examples/l2fwd-crypto/main.c
b/examples/l2fwd-crypto/main.c
index
f020be3
..
17673a3
100644
(file)
--- a/
examples/l2fwd-crypto/main.c
+++ b/
examples/l2fwd-crypto/main.c
@@
-1088,6
+1088,7
@@
parse_key(uint8_t *data, char *input_arg)
unsigned byte_count;
char *token;
+ errno = 0;
for (byte_count = 0, token = strtok(input_arg, ":");
(byte_count < MAX_KEY_SIZE) && (token != NULL);
token = strtok(NULL, ":")) {