|
@@ -57,7 +57,8 @@
|
|
|
*/
|
|
|
int db_postgres_str2val(const db_type_t _t, db_val_t* _v, const char* _s, const int _l)
|
|
|
{
|
|
|
- if ( (_t != DB_BLOB && _v != NULL) || _v == NULL) {
|
|
|
+ /* use common function for non BLOB, NULL setting and input parameter checking */
|
|
|
+ if ( _t != DB_BLOB || _s == NULL || _v == NULL) {
|
|
|
return db_str2val(_t, _v, _s, _l, 1);
|
|
|
} else {
|
|
|
char * tmp_s = NULL;
|