forked from osmocom/wireshark
sharkd: set uninitialized values (found by clang).
Change-Id: Ie68c23be4e40b815c995008a43e3c5443a9de5f6 Reviewed-on: https://code.wireshark.org/review/25353 Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
afcff2dcd1
commit
d9158e680a
|
@ -724,13 +724,15 @@ sharkd_session_create_columns(column_info *cinfo, const char *buf, const jsmntok
|
|||
if (tok_column == NULL)
|
||||
break;
|
||||
|
||||
columns_custom[i] = NULL;
|
||||
columns_occur[i] = 0;
|
||||
|
||||
if ((custom_sepa = strchr(tok_column, ':')))
|
||||
{
|
||||
*custom_sepa = '\0'; /* XXX, C abuse: discarding-const */
|
||||
|
||||
columns_fmt[i] = COL_CUSTOM;
|
||||
columns_custom[i] = tok_column;
|
||||
columns_occur[i] = 0;
|
||||
|
||||
if (!ws_strtoi16(custom_sepa + 1, NULL, &columns_occur[i]))
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue