Overview
| Comment: | Check if sqlite3_column_text returns a null pointer, in the levels_column function in game.c. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
e4569f54ccccaed1d6905173fd970f4a |
| User & Date: | user on 2022-07-19 18:03:11.702 |
| Other Links: | manifest | tags |
Context
|
2022-07-20
| ||
| 05:10 | Start to implement multidependent picture lumps (currently only adding/deleting them in the picture editor and listing them; you cannot edit nor use them yet). check-in: ed54db3698 user: user tags: trunk | |
|
2022-07-19
| ||
| 18:03 | Check if sqlite3_column_text returns a null pointer, in the levels_column function in game.c. check-in: e4569f54cc user: user tags: trunk | |
|
2022-07-18
| ||
| 06:38 | Implement (partially) comconfig; also add back into game.c the ability to record solution timestamps (that was removed by mistake in the past), and improve documentation about compiling (in README file). check-in: 3bac201324 user: user tags: trunk | |
Changes
Modified game.c
from [548c7bc0d9]
to [c6efffb6bc].
| ︙ | ︙ | |||
881 882 883 884 885 886 887 |
int i;
const char*p;
sqlite3_int64 v;
if(t==SQLITE_NULL) return;
if(dc->flag&1) w=255;
if(t==SQLITE_BLOB || t==SQLITE_TEXT) {
blob:
| | | 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 |
int i;
const char*p;
sqlite3_int64 v;
if(t==SQLITE_NULL) return;
if(dc->flag&1) w=255;
if(t==SQLITE_BLOB || t==SQLITE_TEXT) {
blob:
if(p=sqlite3_column_text(st,nc)) i=snprintf(buf,w,"%s",p); else *buf=i=0;
if(dc->form[0]=='R' && i<w) a=w-i;
if(dc->flag&2) co=0xFF;
} else {
// This implementation does not check that the format is necessarily valid.
// You should not rely on the use of any undocumented format.
v=sqlite3_column_int64(st,nc);
if(dc->flag&2) {
|
| ︙ | ︙ |