1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

fix init, from randy hartman; ok tb@

This commit is contained in:
otto 2016-09-12 14:38:58 +00:00
parent 1e108c5fd4
commit 1456f860f6

View File

@ -1,4 +1,4 @@
/* $OpenBSD: bog.c,v 1.31 2016/08/27 02:00:10 guenther Exp $ */
/* $OpenBSD: bog.c,v 1.32 2016/09/12 14:38:58 otto Exp $ */
/* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */
/*-
@ -127,6 +127,8 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
ncubes = grid * grid;
/* process final arguments */
if (argc > 0) {
if (strcmp(argv[0], "+") == 0)
@ -674,7 +676,6 @@ init(void)
{
int i;
ncubes = grid * grid;
if (minlength == -1)
minlength = grid - 1;
init_adjacencies();