Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/moused avoid attempting to print NULL.
details: https://anonhg.NetBSD.org/src/rev/a339b6115308
branches: trunk
changeset: 1020443:a339b6115308
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Apr 12 09:30:32 2021 +0000
description:
avoid attempting to print NULL.
diffstat:
usr.sbin/moused/moused.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 2c2a1d997c6c -r a339b6115308 usr.sbin/moused/moused.c
--- a/usr.sbin/moused/moused.c Mon Apr 12 09:29:53 2021 +0000
+++ b/usr.sbin/moused/moused.c Mon Apr 12 09:30:32 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: moused.c,v 1.25 2014/10/18 08:33:31 snj Exp $ */
+/* $NetBSD: moused.c,v 1.26 2021/04/12 09:30:32 mrg Exp $ */
/**
** Copyright (c) 1995 Michael Smith, All rights reserved.
**
@@ -48,7 +48,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: moused.c,v 1.25 2014/10/18 08:33:31 snj Exp $");
+__RCSID("$NetBSD: moused.c,v 1.26 2021/04/12 09:30:32 mrg Exp $");
#endif /* not lint */
#include <ctype.h>
@@ -2540,11 +2540,11 @@
int i, j;
id->revision = 0;
- id->eisaid = NULL;
+ id->eisaid = "";
id->serial = NULL;
id->class = NULL;
- id->compat = NULL;
- id->description = NULL;
+ id->compat = "";
+ id->description = "";
id->neisaid = 0;
id->nserial = 0;
id->nclass = 0;
Home |
Main Index |
Thread Index |
Old Index