What do you think about?:

```c
fh = fopen (log_file != NULL ? log_file : DEFAULT_LOGFILE, "a");
```