Return NULL from routines that return pointers, for stylistic consistency.

Change-Id: Idfc236f712e288662bab618e72cd68263950fff4
Reviewed-on: https://code.wireshark.org/review/10591
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2015-09-20 12:08:34 -07:00
parent 821ebb81f1
commit 1d6710f1dd
1 changed files with 2 additions and 2 deletions

View File

@ -1484,7 +1484,7 @@ dissector_get_string_handle(dissector_table_t sub_dissectors,
{
dtbl_entry_t *dtbl_entry;
if (!string) return 0;
if (!string) return NULL;
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL)
return dtbl_entry->current;
@ -1497,7 +1497,7 @@ dissector_get_default_string_handle(const char *name, const gchar *string)
{
dissector_table_t sub_dissectors;
if (!string) return 0;
if (!string) return NULL;
sub_dissectors = find_dissector_table(name);
if (sub_dissectors != NULL) {
dtbl_entry_t *dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);