Fossil

Check-in [6d67f3c7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:minor efficiency hack in tagview_page_list_tags()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6d67f3c7c71b65b0f0d339487667c13cb5449253
User & Date: stephan 2008-02-08 16:24:25
Context
2008-02-08
16:27
correction to the 'warning' text in admin_sql_page() check-in: 138177c3 user: stephan tags: trunk
16:24
minor efficiency hack in tagview_page_list_tags() check-in: 6d67f3c7 user: stephan tags: trunk
2008-02-07
18:01
fixed a 2-string memleak in tagview_page_list_tags() check-in: 2ae78900 user: stephan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/tagview.c.

66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
    "   AND tx.tagtype!=0 %s "
    TAGVIEW_DEFAULT_FILTER
    " ORDER BY tx.mtime DESC %s",
    zLikeClause, zLimit
  );
  db_generic_query_view(zSql, 1);
  free(zSql);
  if( strlen(zLikeClause) ) free(zLikeClause);
  if( strlen(zLimit) ) free(zLimit);
}

/*
** A small search form which forwards to ?like=SEARCH_STRING
*/
static void tagview_page_search_miniform(void){
  char const * like = P("like");







|
|







66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
    "   AND tx.tagtype!=0 %s "
    TAGVIEW_DEFAULT_FILTER
    " ORDER BY tx.mtime DESC %s",
    zLikeClause, zLimit
  );
  db_generic_query_view(zSql, 1);
  free(zSql);
  if( zLikeClause[0] ) free(zLikeClause);
  if( zLimit[0] ) free(zLimit);
}

/*
** A small search form which forwards to ?like=SEARCH_STRING
*/
static void tagview_page_search_miniform(void){
  char const * like = P("like");