[Redbutton-devel] SF.net SVN: redbutton: [190] redbutton-browser/trunk/ResidentProgramClass.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-01-23 08:38:03
|
Revision: 190
http://svn.sourceforge.net/redbutton/?rev=190&view=rev
Author: skilvington
Date: 2007-01-23 00:37:58 -0800 (Tue, 23 Jan 2007)
Log Message:
-----------
add an extra condition to the search assert
Modified Paths:
--------------
redbutton-browser/trunk/ResidentProgramClass.c
Modified: redbutton-browser/trunk/ResidentProgramClass.c
===================================================================
--- redbutton-browser/trunk/ResidentProgramClass.c 2007-01-22 17:11:52 UTC (rev 189)
+++ redbutton-browser/trunk/ResidentProgramClass.c 2007-01-23 08:37:58 UTC (rev 190)
@@ -797,7 +797,8 @@
search_substring(OctetString *string, int start, OctetString *search)
{
/* assert */
- if(start < 1 || start > string->size)
+ if(string->size != 0
+ && (start < 1 || start > string->size))
fatal("search_substring: start=%d string->size=%d", start, string->size);
/* simple cases */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|