Fossil

Check-in [37e234fa]
Login

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

Overview
Comment:"const" the conts (typo) (ref: [ticket])
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:37e234fa8893bb72a94648ce49dc70595b2077fd
User & Date: bch 2014-12-11 22:23:10
Original Comment: "const" the conts (typo)
References
2014-12-11
23:01 Closed ticket [738ddb08]: Error of typing plus 4 other changes artifact: 15ad6037 user: bharder
Context
2014-12-12
06:30
On 302 redirects, cause addr and socket reinitialize so it has the info for the new location and not the old. This may address a bug reported on the ML by Ashwin Hirschi in which a redirect was causing Fossil to segfault, likely due to redirecting to the same site repeatedly because addr was remaining unchanged. check-in: 6e7cb7f2 user: andybradford tags: trunk
2014-12-11
22:23
"const" the conts (typo) (ref: [ticket]) check-in: 37e234fa user: bch tags: trunk
14:59
Add a link to the http://fuelscm.org/ project on the Fossil homepage. Oops: Some other unrelated and experimental changes to the "search" command also got folded into this check-in check-in: 85f26562 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/search.c.

156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
*/
static void search_score_sqlfunc(
  sqlite3_context *context,
  int argc,
  sqlite3_value **argv
){
  Search *p = (Search*)sqlite3_user_data(context);
  conts char **azDoc;
  int score;
  int i;

  azDoc = fossil_malloc( sizeof(const char*)*(argc+1) );
  for(i=0; i<argc; i++) azDoc[i] = (const char*)sqlite3_value_text(argv[i]);
  score = search_score(p, argc, azDoc);
  fossil_free(azDoc);







|







156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
*/
static void search_score_sqlfunc(
  sqlite3_context *context,
  int argc,
  sqlite3_value **argv
){
  Search *p = (Search*)sqlite3_user_data(context);
  const char **azDoc;
  int score;
  int i;

  azDoc = fossil_malloc( sizeof(const char*)*(argc+1) );
  for(i=0; i<argc; i++) azDoc[i] = (const char*)sqlite3_value_text(argv[i]);
  score = search_score(p, argc, azDoc);
  fossil_free(azDoc);