Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2020 05:02:18 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363172 - head/contrib/bc/src
Message-ID:  <202007140502.06E52IZn022859@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Jul 14 05:02:18 2020
New Revision: 363172
URL: https://svnweb.freebsd.org/changeset/base/363172

Log:
  [bc] Fix a "maybe uninitialized" compiler warning under mips-gcc-6.3.0.
  
  I guess this didn't like the case statements.. ? But this does quieten
  the compiler error.

Modified:
  head/contrib/bc/src/program.c

Modified: head/contrib/bc/src/program.c
==============================================================================
--- head/contrib/bc/src/program.c	Tue Jul 14 05:00:08 2020	(r363171)
+++ head/contrib/bc/src/program.c	Tue Jul 14 05:02:18 2020	(r363172)
@@ -180,7 +180,7 @@ static inline BcVec* bc_program_vec(const BcProgram *p
 
 static BcNum* bc_program_num(BcProgram *p, BcResult *r) {
 
-	BcNum *n;
+	BcNum *n = NULL;
 
 	switch (r->t) {
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007140502.06E52IZn022859>