Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): fix coverity annotation for CondParser...



details:   https://anonhg.NetBSD.org/src/rev/19b5e2a32bf9
branches:  trunk
changeset: 938799:19b5e2a32bf9
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Sep 14 23:09:34 2020 +0000

description:
make(1): fix coverity annotation for CondParser_String

It had been broken since 2020-09-08, when CondLexer (now CondParser) was
added.

diffstat:

 usr.bin/make/cond.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 468e72b81a77 -r 19b5e2a32bf9 usr.bin/make/cond.c
--- a/usr.bin/make/cond.c       Mon Sep 14 21:55:53 2020 +0000
+++ b/usr.bin/make/cond.c       Mon Sep 14 23:09:34 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cond.c,v 1.146 2020/09/13 19:46:23 rillig Exp $        */
+/*     $NetBSD: cond.c,v 1.147 2020/09/14 23:09:34 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -93,7 +93,7 @@
 #include "dir.h"
 
 /*     "@(#)cond.c     8.2 (Berkeley) 1/2/94"  */
-MAKE_RCSID("$NetBSD: cond.c,v 1.146 2020/09/13 19:46:23 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.147 2020/09/14 23:09:34 rillig Exp $");
 
 /*
  * The parsing of conditional expressions is based on this grammar:
@@ -405,7 +405,7 @@
  *     Sets quoted if the string was quoted.
  *     Sets freeIt if needed.
  */
-/* coverity:[+alloc : arg-*3] */
+/* coverity:[+alloc : arg-*4] */
 static const char *
 CondParser_String(CondParser *par, Boolean doEval, Boolean strictLHS,
                  Boolean *quoted, void **freeIt)



Home | Main Index | Thread Index | Old Index