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



details:   https://anonhg.NetBSD.org/src/rev/53a207f65be3
branches:  trunk
changeset: 958815:53a207f65be3
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Jan 21 13:31:38 2021 +0000

description:
make(1): fix Coverity annotation

FStr is not an allocated data type.

diffstat:

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

diffs (26 lines):

diff -r 7a02ad522ebe -r 53a207f65be3 usr.bin/make/cond.c
--- a/usr.bin/make/cond.c       Thu Jan 21 09:50:37 2021 +0000
+++ b/usr.bin/make/cond.c       Thu Jan 21 13:31:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cond.c,v 1.244 2021/01/19 22:12:44 rillig Exp $        */
+/*     $NetBSD: cond.c,v 1.245 2021/01/21 13:31:38 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -95,7 +95,7 @@
 #include "dir.h"
 
 /*     "@(#)cond.c     8.2 (Berkeley) 1/2/94"  */
-MAKE_RCSID("$NetBSD: cond.c,v 1.244 2021/01/19 22:12:44 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.245 2021/01/21 13:31:38 rillig Exp $");
 
 /*
  * The parsing of conditional expressions is based on this grammar:
@@ -407,7 +407,6 @@
  *     Sets out_quoted if the string was quoted.
  *     Sets out_freeIt.
  */
-/* coverity:[+alloc : arg-*4] */
 static void
 CondParser_String(CondParser *par, Boolean doEval, Boolean strictLHS,
                  FStr *out_str, Boolean *out_quoted)



Home | Main Index | Thread Index | Old Index