Module: sip-router
Branch: janakj/postgres
Commit: a9b67b6b16d7b127b8a6290efed08d174c358cd4
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a9b67b6…
Author: Maxim Sobolev <sobomax(a)sippysoft.com>
Committer: Maxim Sobolev <sobomax(a)sippysoft.com>
Date: Thu Nov 17 03:49:37 2005 +0000
Provide two useful macros for str initialization: STR_STATIC_INIT() and
STR_NULL. Adjust all modules to use those macros where appropriate.
Verified by: md5(1) (those modules, which actually compile)
---
modules/db_postgres/res.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/db_postgres/res.c b/modules/db_postgres/res.c
index 1f72a6e..19070bc 100644
--- a/modules/db_postgres/res.c
+++ b/modules/db_postgres/res.c
@@ -173,7 +173,7 @@ static inline void free_rows(db_res_t* res)
static inline int convert_cell(db_con_t* con, db_res_t* res, int row, int col)
{
- static str dummy_str = {"", 0};
+ static str dummy_str = STR_STATIC_INIT("");
PGresult* pgres;
db_val_t* val;
int type, pglen;