We generally discourage calling functions inside the if-condition and this is simply too much. Could you please change this to:

```c
if (db->url)
  status = cj_curl_perform (db);
else
  status = cj_sock_perform (db);
if (status < 0)
{
  /* … */
}
```