From 791f3b132782cf0f5e19227051f0ad361983ec1d Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 21 Sep 2011 13:24:43 -0400 Subject: [PATCH] altering to match book source code so that I can reliably spot line ref errors --- ex17.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ex17.c b/ex17.c index 8e3cbb1..493d9a1 100644 --- a/ex17.c +++ b/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; } +