altering to match book source code so that I can reliably spot line ref errors
This commit is contained in:
parent
c64e1beeaa
commit
791f3b1327
3
ex17.c
3
ex17.c
@ -104,7 +104,7 @@ void Database_create(struct Connection *conn)
|
||||
void Database_set(struct Connection *conn, int id, const char *name, const char *email)
|
||||
{
|
||||
struct Address *addr = &conn->db->rows[id];
|
||||
if(addr->set) die("Already set, delete it first.");
|
||||
if(addr->set) die("Already set, delete it first");
|
||||
|
||||
addr->set = 1;
|
||||
// WARNING: bug, read the "How To Break It" and fix this
|
||||
@ -196,3 +196,4 @@ int main(int argc, char *argv[])
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user