Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Add a LINTED comment... Why doesn't NOTREACHED w...
details: https://anonhg.NetBSD.org/src/rev/c1ff606c97d4
branches: trunk
changeset: 1022932:c1ff606c97d4
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 15 10:06:32 2021 +0000
description:
Add a LINTED comment... Why doesn't NOTREACHED work?
diffstat:
lib/libedit/readline.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r aa42fc232417 -r c1ff606c97d4 lib/libedit/readline.c
--- a/lib/libedit/readline.c Sun Aug 15 08:57:01 2021 +0000
+++ b/lib/libedit/readline.c Sun Aug 15 10:06:32 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: readline.c,v 1.159 2019/10/09 14:31:07 christos Exp $ */
+/* $NetBSD: readline.c,v 1.160 2021/08/15 10:06:32 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.159 2019/10/09 14:31:07 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.160 2021/08/15 10:06:32 christos Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@@ -952,8 +952,10 @@
(size += len + 1) * sizeof(*nresult)); \
if (nresult == NULL) { \
el_free(*output); \
- if (/*CONSTCOND*/fr) \
+ if (/*CONSTCOND*/fr) { \
+ /*LINTED*/ \
el_free(tmp); \
+ } \
return 0; \
} \
result = nresult; \
Home |
Main Index |
Thread Index |
Old Index