diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-02-21 14:08:27 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-02-27 00:51:37 +0000 |
commit | 513eed6871198d025a45ad70aaa50721857c2095 (patch) | |
tree | b5db549b5e93d779c102057a2ea897162b5cbcaa /text2pcap.h | |
parent | a08177b00bd07e77baa9db97bd731cb1df9173a8 (diff) | |
download | wireshark-513eed6871198d025a45ad70aaa50721857c2095.tar.gz |
text2pcap: check return values of functions and use a single exit point.
This is going to check every function for success and following patches
will free allocated memory in clean_exit.
Change-Id: I7ba7a53eae8a37a4c25e56369af20e575c3489fb
Reviewed-on: https://code.wireshark.org/review/20225
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'text2pcap.h')
-rw-r--r-- | text2pcap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text2pcap.h b/text2pcap.h index 964d5d22d4..3ec6b02638 100644 --- a/text2pcap.h +++ b/text2pcap.h @@ -40,7 +40,7 @@ typedef enum { T_EOL } token_t; -void parse_token(token_t token, char *str); +int parse_token(token_t token, char *str); int yylex(void); |