Diff
Not logged in

Differences From:

File src/tagview.c part of check-in [2ae7890060] - fixed a 2-string memleak in tagview_page_list_tags() by stephan on 2008-02-07 18:01:50. [view]

To:

File src/tagview.c part of check-in [6d67f3c7c7] - minor efficiency hack in tagview_page_list_tags() by stephan on 2008-02-08 16:24:25. Also file src/tagview.c part of check-in [373e42de1d] - Merge two branches that were created within one second of one another. There is a race condition in the anti-forking logic that allowed this fork to occur. by drh on 2008-02-08 17:27:16. [view]

@@ -69,10 +69,10 @@
     zLikeClause, zLimit
   );
   db_generic_query_view(zSql, 1);
   free(zSql);
-  if( strlen(zLikeClause) ) free(zLikeClause);
-  if( strlen(zLimit) ) free(zLimit);
+  if( zLikeClause[0] ) free(zLikeClause);
+  if( zLimit[0] ) free(zLimit);
 }
 
 /*
 ** A small search form which forwards to ?like=SEARCH_STRING