=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -p -r1.46 -r1.47 --- mandoc/html.c 2009/09/21 13:44:56 1.46 +++ mandoc/html.c 2009/09/21 13:47:40 1.47 @@ -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;