/ Check-in [56d19f9f]
Login

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

Overview
Comment:Remove an unnecessary conditional.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 56d19f9fd7b01d4ed5c3e7309977b43fedffee168c9760d3e3b7e885790f781e
User & Date: drh 2017-08-21 02:20:57
Context
2017-08-22
15:21
Fix error tests in seldom-used compile-time branches of the unix backend. check-in: 885c2b44 user: drh tags: trunk
2017-08-21
02:20
Remove an unnecessary conditional. check-in: 56d19f9f user: drh tags: trunk
02:05
Minor optimization to sqlite3VdbeMemSetStr(). check-in: 6538ef7b user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/expr.c.

   771    771   Expr *sqlite3Expr(
   772    772     sqlite3 *db,            /* Handle for sqlite3DbMallocZero() (may be null) */
   773    773     int op,                 /* Expression opcode */
   774    774     const char *zToken      /* Token argument.  Might be NULL */
   775    775   ){
   776    776     Token x;
   777    777     x.z = zToken;
   778         -  x.n = zToken ? sqlite3Strlen30(zToken) : 0;
          778  +  x.n = sqlite3Strlen30(zToken);
   779    779     return sqlite3ExprAlloc(db, op, &x, 0);
   780    780   }
   781    781   
   782    782   /*
   783    783   ** Attach subtrees pLeft and pRight to the Expr node pRoot.
   784    784   **
   785    785   ** If pRoot==NULL that means that a memory allocation error has occurred.