[NeoStats-Devel] [Commits] r92 - branches/3.0
[email protected] Sat, 13 Aug 2005 01:21:53 +1000
| Newsgroups | gmane.comp.neostats.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: Fish
Date: Fri Aug 12 23:21:46 2005
New Revision: 92
Modified:
branches/3.0/Makefile.in
branches/3.0/TriviaQues.c
Log:
fix TriviaServ startup with first run of the timers
Modified: branches/3.0/Makefile.in
==============================================================================
--- branches/3.0/Makefile.in (original)
+++ branches/3.0/Makefile.in Fri Aug 12 23:21:46 2005
@@ -39,7 +39,7 @@
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)
$(INSTALL) -m 644 $(DOCS) $(DIRECTORY)../doc/
@mkdir $(DIRECTORY)../data/TSQuestions/
- $(INSTALL) -m 644 $(DATA) $(DIRECTORY)../data/TSQuestions/
+ @$(INSTALL) -m 644 $(DATA) $(DIRECTORY)../data/TSQuestions/
@echo "Installation complete."
@echo "See the README file for instructions on loading this module."
Modified: branches/3.0/TriviaQues.c
==============================================================================
--- branches/3.0/TriviaQues.c (original)
+++ branches/3.0/TriviaQues.c Fri Aug 12 23:21:46 2005
@@ -368,6 +368,10 @@
qe = tc->curquest;
/* modify answer character case if required before displaying */
+ if (!qe || !qe->answer) {
+ tc->curquest = NULL;
+ return;
+ }
for (i = 0 ; i < strlen(qe->answer) ; i++)
{
if ((tc->boldcase > 1) && ((qe->answer[i] >= 'a' && qe->answer[i] <= 'z') || (qe->answer[i] >= 'A' && qe->answer[i] <= 'Z')))