Fossil

Check-in [79b27a675f]
Login

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

Overview
Comment:Remove superfluous conditional operator.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | tkt-b6eea9446d
Files: files | file ages | folders
SHA1: 79b27a675f6e6f747f7d8bf2a548866f26056720
User & Date: mistachkin 2015-04-03 03:06:13.385
Context
2015-04-03
03:07
Further simplifications. check-in: 52641f3032 user: mistachkin tags: tkt-b6eea9446d
03:06
Remove superfluous conditional operator. check-in: 79b27a675f user: mistachkin tags: tkt-b6eea9446d
03:04
Manually fix some merge issues and adapt the algorithm to the latest trunk code. check-in: e6b160afe3 user: mistachkin tags: tkt-b6eea9446d
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
** db_all_column_text() function for a particular column.
*/
void db_all_column_free(
  int count,        /* Number of string elements in the arrays. */
  char ***pazValue  /* Array of column values from query. */
){
  if( pazValue ){
    char **azValue = pazValue ? *pazValue : 0;
    int i;
    for(i=0; i<count; i++){
      if( azValue ){
        fossil_free(azValue[i]);
        azValue[i] = 0;
      }
    }







|







394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
** db_all_column_text() function for a particular column.
*/
void db_all_column_free(
  int count,        /* Number of string elements in the arrays. */
  char ***pazValue  /* Array of column values from query. */
){
  if( pazValue ){
    char **azValue = *pazValue;
    int i;
    for(i=0; i<count; i++){
      if( azValue ){
        fossil_free(azValue[i]);
        azValue[i] = 0;
      }
    }