aboutsummaryrefslogtreecommitdiffstats
path: root/packet-fddi.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-09-10 03:16:08 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-09-10 03:16:08 +0000
commitb0bd01b53f39943d84332e92ec7acbc1558e9230 (patch)
tree7b7bc78c585e093326f3bc2463b9acc3a9fd748c /packet-fddi.c
parent92c4f1d830c543163cde05c7d7a82f0f3f359d7b (diff)
downloadwireshark-b0bd01b53f39943d84332e92ec7acbc1558e9230.tar.gz
wireshark-b0bd01b53f39943d84332e92ec7acbc1558e9230.tar.bz2
wireshark-b0bd01b53f39943d84332e92ec7acbc1558e9230.zip
Changed default return value of fddifc_to_str from NULL to "". The value
is passed to col_add_str, which is then passed to strncpy, which, at least in glibc 2.1, doesn't like NULL pointers passed to it in lieu of empty strings. svn path=/trunk/; revision=643
Diffstat (limited to 'packet-fddi.c')
-rw-r--r--packet-fddi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-fddi.c b/packet-fddi.c
index 81847521b4..a42cd8a316 100644
--- a/packet-fddi.c
+++ b/packet-fddi.c
@@ -3,7 +3,7 @@
*
* Laurent Deniel <deniel@worldnet.fr>
*
- * $Id: packet-fddi.c,v 1.19 1999/08/24 06:01:45 guy Exp $
+ * $Id: packet-fddi.c,v 1.20 1999/09/10 03:16:08 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -242,7 +242,7 @@ fddifc_to_str(int fc)
break;
default:
- return NULL;
+ return "";
}
}
}