From 5d0d4a6f195d157f9e7927d36c2baef11af9d0c6 Mon Sep 17 00:00:00 2001 From: jasper Date: Sat, 25 Jun 2011 15:33:33 +0000 Subject: [PATCH] - prevent the return value from being uninitialized, which would break sc in various ways. from slackware via Donovan Watteau --- math/sc/Makefile | 3 ++- math/sc/patches/patch-lex_c | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/math/sc/Makefile b/math/sc/Makefile index 9c77b95aed2..2241b254e39 100644 --- a/math/sc/Makefile +++ b/math/sc/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.11 2010/10/18 20:52:07 espie Exp $ +# $OpenBSD: Makefile,v 1.12 2011/06/25 15:33:33 jasper Exp $ COMMENT= curses spreadsheet-calculator program DISTNAME= sc-7.16 +REVISION= 0 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/financial/spreadsheet/} diff --git a/math/sc/patches/patch-lex_c b/math/sc/patches/patch-lex_c index 819afe0f8bf..0167b39b046 100644 --- a/math/sc/patches/patch-lex_c +++ b/math/sc/patches/patch-lex_c @@ -1,6 +1,15 @@ -$OpenBSD: patch-lex_c,v 1.4 2006/05/28 21:21:51 weingart Exp $ ---- lex.c.orig Thu May 4 09:52:42 2006 -+++ lex.c Thu May 4 09:52:54 2006 +$OpenBSD: patch-lex_c,v 1.5 2011/06/25 15:33:33 jasper Exp $ +--- lex.c.orig Wed Aug 21 00:44:26 2002 ++++ lex.c Sat Jun 25 17:31:00 2011 +@@ -107,7 +107,7 @@ int + yylex() + { + char *p = line + linelim; +- int ret; ++ int ret = 0; + static int isfunc = 0; + static bool isgoto = 0; + static bool colstate = 0; @@ -642,7 +642,7 @@ nmgetch() #endif