Fossil

Check-in [4291b9c87f]
Login

Check-in [4291b9c87f]

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

Overview
Comment:Fix a harmless compiler warning in the previous check-in.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4291b9c87f2508fd676cfc1a563b33ceb416846cc4a1d34ee61577aee2f2f510
User & Date: drh 2021-08-25 23:17:13.691
Context
2021-08-25
23:47
More improvements to login redirects. See the discussion on the [forum:/forumpost/f81625500d96cc0f|forum thread f81625500d96cc0f]. ... (check-in: e5c16594b3 user: drh tags: trunk)
23:17
Fix a harmless compiler warning in the previous check-in. ... (check-in: 4291b9c87f user: drh tags: trunk)
23:08
Add the --www option to the various "diff" commands. ... (check-in: f3961f453a user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/diffcmd.c.
321
322
323
324
325
326
327
328
329
330

331
332
333
334
335
336
337
      fossil_print("<script>\n%s</script>\n", zJs);
    }
    fossil_print("%s", zWebpageEnd);
  }
  if( (diffFlags & DIFF_WWW)!=0 && nErr==0 ){
    char *zCmd = mprintf("%$ %$", fossil_web_browser(), tempDiffFilename);
    fclose(diffOut);
    freopen(NULL_DEVICE, "wb", stdout);
    fossil_system(zCmd);
    fossil_free(zCmd);

    sqlite3_sleep(FOSSIL_WWW_DIFF_DELAY);
    file_delete(tempDiffFilename);
    sqlite3_free(tempDiffFilename);
    tempDiffFilename = 0;
  }
}








|


>







321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
      fossil_print("<script>\n%s</script>\n", zJs);
    }
    fossil_print("%s", zWebpageEnd);
  }
  if( (diffFlags & DIFF_WWW)!=0 && nErr==0 ){
    char *zCmd = mprintf("%$ %$", fossil_web_browser(), tempDiffFilename);
    fclose(diffOut);
    diffOut = freopen(NULL_DEVICE, "wb", stdout);
    fossil_system(zCmd);
    fossil_free(zCmd);
    diffOut = 0;
    sqlite3_sleep(FOSSIL_WWW_DIFF_DELAY);
    file_delete(tempDiffFilename);
    sqlite3_free(tempDiffFilename);
    tempDiffFilename = 0;
  }
}