Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/btkey skip unparseable addresses.
details: https://anonhg.NetBSD.org/src/rev/62f93a970d06
branches: trunk
changeset: 326946:62f93a970d06
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Feb 23 07:50:01 2014 +0000
description:
skip unparseable addresses.
diffstat:
usr.bin/btkey/file.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r c20cb7e28e26 -r 62f93a970d06 usr.bin/btkey/file.c
--- a/usr.bin/btkey/file.c Sun Feb 23 07:49:04 2014 +0000
+++ b/usr.bin/btkey/file.c Sun Feb 23 07:50:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: file.c,v 1.1 2007/11/09 21:18:25 plunky Exp $ */
+/* $NetBSD: file.c,v 1.2 2014/02/23 07:50:01 mlelstv Exp $ */
/*-
* Copyright (c) 2007 Iain Hibbert
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: file.c,v 1.1 2007/11/09 21:18:25 plunky Exp $");
+__RCSID("$NetBSD: file.c,v 1.2 2014/02/23 07:50:01 mlelstv Exp $");
#include <sys/stat.h>
#include <prop/proplib.h>
@@ -67,8 +67,8 @@
goto done;
while ((sym = prop_object_iterator_next(iter)) != NULL) {
- memset(&bdaddr, 0, sizeof(bdaddr));
- bt_aton(prop_dictionary_keysym_cstring_nocopy(sym), &bdaddr);
+ if (bt_aton(prop_dictionary_keysym_cstring_nocopy(sym), &bdaddr) == 0)
+ continue;
if (bdaddr_any(&bdaddr))
continue;
Home |
Main Index |
Thread Index |
Old Index