Fossil

Check-in [a3dd2cfe]
Login

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

Overview
Comment:Fixed a segfault which could/did happen when running content through wikification in CLI mode (which g.zTop is not set).
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a3dd2cfeb04928b05c959af602acd7ee9d30c656
User & Date: stephan 2012-07-13 16:56:10.203
Context
2012-07-13
16:56
Added blob_swap() to simplify some json code. ... (check-in: 2e2cd82b user: stephan tags: trunk)
16:56
Fixed a segfault which could/did happen when running content through wikification in CLI mode (which g.zTop is not set). ... (check-in: a3dd2cfe user: stephan tags: trunk)
15:06
Several minor internal cleanups to the json code which i thought i had committed last week :/. ... (check-in: 055dfb12 user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/printf.c.
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
            bufpt[i]=e[i];
          }
        }
        bufpt[length]='\0';
        break;
      }
      case etROOT: {
        bufpt = g.zTop;
        length = (int)strlen(bufpt);
        break;
      }
      case etSTRINGID: {
        precision = 16;
        /* Fall through */
      }







|







572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
            bufpt[i]=e[i];
          }
        }
        bufpt[length]='\0';
        break;
      }
      case etROOT: {
        bufpt = g.zTop ? g.zTop : "";
        length = (int)strlen(bufpt);
        break;
      }
      case etSTRINGID: {
        precision = 16;
        /* Fall through */
      }