Hi

I detected a strange "feature" of sqlite3. Somebody called it Pointer
Liberation army strike.

uchar* pblah[1];

pblah[0] = (uchar*)malloc(10);

pblah[1] = (uchar*)malloc(10);   // notice the order

sqlite3* db;


// this call magically kills pblah[1] by making it 0x0

int ret = sqlite3_open("./points.db", &db);


Any ideas why?


Thanks

Egene
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to