Fossil

Check-in [649dd8a6af]
Login

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

Overview
Comment:got rid of '... might be used initialized' warnings
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 649dd8a6afa59ab7815dace7fb1c30d74d83a8af
User & Date: stephan 2008-02-03 16:35:12.000
Context
2008-02-03
17:22
Corrected incorrect access rights check (did require Setup rights). Documentation corrections/additions. A few style conformance formatting changes. ... (check-in: b81e93f576 user: stephan tags: trunk)
16:35
got rid of '... might be used initialized' warnings ... (check-in: 649dd8a6af user: stephan tags: trunk)
16:32
Refactored to use a shared query-rendering routine. ... (check-in: 02a7c850b4 user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
}
#endif

/*
** Do a normal HTTP reply
*/
void cgi_reply(void){
  int total_size;
  if( iReplyStatus<=0 ){
    iReplyStatus = 200;
    zReplyStatus = "OK";
  }

#if 0
  if( iReplyStatus==200 && check_cache_control() ) {







|







266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
}
#endif

/*
** Do a normal HTTP reply
*/
void cgi_reply(void){
  int total_size = 0;
  if( iReplyStatus<=0 ){
    iReplyStatus = 200;
    zReplyStatus = "OK";
  }

#if 0
  if( iReplyStatus==200 && check_cache_control() ) {
Changes to src/info.c.
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
** The argument is a UUID which might be a baseline or a file or
** a ticket or something else.  It might also be a wiki page name.
** Figure out what the UUID is an jump to it.  If there is ambiguity,
** draw a page and let the user select the interpretation.
*/
void info_page(void){
  const char *zName;
  int rc, nName, cnt;
  Stmt q;
  
  zName = P("name");
  if( zName==0 ) cgi_redirect("index");
  nName = strlen(zName);
  if( nName<4 || nName>UUID_SIZE || !validate16(zName, nName) ){
    cgi_redirect("index");







|







744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
** The argument is a UUID which might be a baseline or a file or
** a ticket or something else.  It might also be a wiki page name.
** Figure out what the UUID is an jump to it.  If there is ambiguity,
** draw a page and let the user select the interpretation.
*/
void info_page(void){
  const char *zName;
  int rc = 0, nName, cnt;
  Stmt q;
  
  zName = P("name");
  if( zName==0 ) cgi_redirect("index");
  nName = strlen(zName);
  if( nName<4 || nName>UUID_SIZE || !validate16(zName, nName) ){
    cgi_redirect("index");