Check-in [9e2d2676a4]
Not logged in
Overview

SHA1 Hash:9e2d2676a4074cc4aee65892b50bff74e3539ea5
Date: 2008-06-08 15:10:20
User: drh
Comment:Fix a C++-ism in report.c.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/report.c from [5e81235a00] to [6a7885da53].

@@ -52,13 +52,13 @@
   }else{
     db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title");
     @ <p>Choose a report format from the following list:</p>
     @ <ol>
     while( db_step(&q)==SQLITE_ROW ){
-      rn = db_column_int(&q, 0);
       const char *zTitle = db_column_text(&q, 1);
       const char *zOwner = db_column_text(&q, 2);
+      rn = db_column_int(&q, 0);
       cnt++;
       @ <li value="%d(cnt)"><a href="rptview?rn=%d(rn)"
       @        rel="nofollow">%h(zTitle)</a>&nbsp;&nbsp;&nbsp;
       if( g.okWrite && zOwner && zOwner[0] ){
         @ (by <i>%h(zOwner)</i>)