- prevent the return value from being uninitialized, which would break sc
in various ways. from slackware via Donovan Watteau
This commit is contained in:
parent
f845834c50
commit
5d0d4a6f19
@ -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/}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user