summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--listen/ax25dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/listen/ax25dump.c b/listen/ax25dump.c
index a7b696c..5a870b7 100644
--- a/listen/ax25dump.c
+++ b/listen/ax25dump.c
@@ -373,6 +373,8 @@ char *pax25(char *buf, unsigned char *data)
static int ftype(unsigned char *data, int *type, int *ns, int *nr, int *pf,
int extseq)
{
+ *ns = *nr = 0; /* To avoid warnings */
+
if (extseq) {
if ((*data & 0x01) == 0) { /* An I frame is an I-frame ... */
*type = I;