diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-07-22 21:50:47 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-07-22 21:50:47 +0000 |
commit | 6b664c122cb9818b0ddebb1a1cf9045439644383 (patch) | |
tree | 2745b3add8af23002b90a722bf9145ad85bc359f /column.c | |
parent | 0edb5d5dc8424614a83ffbfcf4c4e639a171d00c (diff) | |
download | wireshark-6b664c122cb9818b0ddebb1a1cf9045439644383.tar.gz wireshark-6b664c122cb9818b0ddebb1a1cf9045439644383.tar.bz2 wireshark-6b664c122cb9818b0ddebb1a1cf9045439644383.zip |
Check for valid column titles (non-zero-length) and valid column formats
in preference settings.
In the process of doing that, fix a memory leak (we were handing a null
pointer, rather than a pointer to the list of strings in
"column.format", to "clear_string_list()").
svn path=/trunk/; revision=3775
Diffstat (limited to 'column.c')
-rw-r--r-- | column.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* column.c * Routines for handling column preferences * - * $Id: column.c,v 1.32 2001/07/22 21:28:46 guy Exp $ + * $Id: column.c,v 1.33 2001/07/22 21:50:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -376,7 +376,7 @@ get_column_format_from_str(gchar *str) { } cptr++; } - return COL_NUMBER; + return -1; /* illegal */ } gchar * |