projects
/
m6w6
/
ext-pq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
2f18087
)
fix coverity issues
author
Michael Wallner
<mike@php.net>
Tue, 3 May 2016 14:30:05 +0000
(16:30 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 3 May 2016 14:30:05 +0000
(16:30 +0200)
src/php_pq_misc.h
patch
|
blob
|
history
diff --git
a/src/php_pq_misc.h
b/src/php_pq_misc.h
index 2fdb7e1432e76fc5832c90d965fcd4008f916885..bffa9d42d181dce3b8bb089be6134000f779bbfe 100644
(file)
--- a/
src/php_pq_misc.h
+++ b/
src/php_pq_misc.h
@@
-20,8
+20,8
@@
#define z_is_true zend_is_true
#define smart_str_s(ss) (ss)->s
-#define smart_str_v(ss) (s
s)->s->val
-#define smart_str_l(ss) (s
s)->s->len
+#define smart_str_v(ss) (s
mart_str_s(ss)?(ss)->s->val:NULL)
+#define smart_str_l(ss) (s
mart_str_s(ss)?(ss)->s->len:0)
/* clear result object associated with a result handle */
extern void php_pqres_clear(PGresult *r);