15 lines
451 B
Diff
15 lines
451 B
Diff
|
--- cu.c
|
||
|
+++ cu.c Thu Jun 26 18:39:05 2003
|
||
|
@@ -565,6 +565,11 @@
|
||
|
sinfo.zline = zline;
|
||
|
if (zport != NULL || zline != NULL || ibaud != 0L)
|
||
|
{
|
||
|
+ /* Make sure _everything_ is initialized to zero.
|
||
|
+ * Otherwise some fields (such as uuconf_fcarrier)
|
||
|
+ * will be random. */
|
||
|
+ memset(&sport, 0, sizeof(sport));
|
||
|
+
|
||
|
iuuconf = uuconf_find_port (puuconf, zport, ibaud, 0L,
|
||
|
icuport_lock, (pointer) &sinfo,
|
||
|
&sport);
|