Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/libsaslc/dist/src remove NULL check, can...
details: https://anonhg.NetBSD.org/src/rev/d0a2b5b78e3c
branches: trunk
changeset: 761959:d0a2b5b78e3c
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 12 14:24:18 2011 +0000
description:
remove NULL check, can't happen.
diffstat:
crypto/external/bsd/libsaslc/dist/src/dict.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 01354dfb9af0 -r d0a2b5b78e3c crypto/external/bsd/libsaslc/dist/src/dict.c
--- a/crypto/external/bsd/libsaslc/dist/src/dict.c Sat Feb 12 10:28:08 2011 +0000
+++ b/crypto/external/bsd/libsaslc/dist/src/dict.c Sat Feb 12 14:24:18 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dict.c,v 1.3 2011/02/11 23:44:43 christos Exp $ */
+/* $NetBSD: dict.c,v 1.4 2011/02/12 14:24:18 christos Exp $ */
/* Copyright (c) 2010 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: dict.c,v 1.3 2011/02/11 23:44:43 christos Exp $");
+__RCSID("$NetBSD: dict.c,v 1.4 2011/02/12 14:24:18 christos Exp $");
#include <sys/queue.h>
#include <ctype.h>
@@ -115,9 +115,6 @@
saslc__dict_valid_key(const char *key)
{
/* key is empty string */
- if (key == NULL)
- return false;
-
if (!isalpha((unsigned char)*key))
return false;
Home |
Main Index |
Thread Index |
Old Index