From bac2dbf73afb202176103819dd7a518e98226466 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 21 Sep 2009 13:47:40 +0000 Subject: Fix in outopts processing. --- html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 257b53de..c568ea9a 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.46 2009/09/21 13:44:56 kristaps Exp $ */ +/* $Id: html.c,v 1.47 2009/09/21 13:47:40 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -424,7 +424,7 @@ html_alloc(char *outopts) return(NULL); } - while (*outopts) + while (outopts && *outopts) switch (getsubopt(&outopts, toks, &v)) { case (0): h->style = v; -- cgit v1.2.3-56-ge451