/ Check-in [4207ebc4]
Login

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

Overview
Comment:Fix lemon so that it does not crash on a empty reduce action. Ticket #1892. (CVS 3333)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4207ebc4e107df9f9f046be652f061e53263c8dd
User & Date: drh 2006-07-17 00:19:39
Context
2006-07-25
15:14
Allow database writes from within virtual table module xSync() callbacks. (CVS 3334) check-in: d5a608d0 user: danielk1977 tags: trunk
2006-07-17
00:19
Fix lemon so that it does not crash on a empty reduce action. Ticket #1892. (CVS 3333) check-in: 4207ebc4 user: drh tags: trunk
00:02
Add the "interrupt" method to the TCL interface. Ticket #1889. (CVS 3332) check-in: b0d19e57 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

4107
4108
4109
4110
4111
4112
4113

4114
4115
4116
4117
4118
4119
4120
** than one place.
*/
char *Strsafe(y)
char *y;
{
  char *z;


  z = Strsafe_find(y);
  if( z==0 && (z=malloc( strlen(y)+1 ))!=0 ){
    strcpy(z,y);
    Strsafe_insert(z);
  }
  MemoryCheck(z);
  return z;







>







4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
** than one place.
*/
char *Strsafe(y)
char *y;
{
  char *z;

  if( y==0 ) return 0;
  z = Strsafe_find(y);
  if( z==0 && (z=malloc( strlen(y)+1 ))!=0 ){
    strcpy(z,y);
    Strsafe_insert(z);
  }
  MemoryCheck(z);
  return z;