svn commit: r363172 - head/contrib/bc/src

Adrian Chadd adrian at FreeBSD.org
Tue Jul 14 05:02:18 UTC 2020


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) {
 


More information about the svn-src-head mailing list