about summary refs log tree commit diff stats
path: root/freebsd
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-06-06 14:40:29 -0400
committerJosh Rickmar <jrick@devio.us>2012-06-07 09:11:35 -0400
commit8c87a2283c7cec587d11bcd165dfe0408451aea6 (patch)
treef62dd6ec0c8f98a7e5a65754060bac8a6aca68b9 /freebsd
parent3298d9a24118b28173f3b606d7aed8fd8fee44f7 (diff)
downloadxombrero-8c87a2283c7cec587d11bcd165dfe0408451aea6.tar.gz
Set default char * setting pointers to NULL and g_strdup the default
values from static memory, as they will be g_free()'d later if changed
at runtime or from parsing the config.  "Special" settings (struct
special) do not need this as they use their own set functions.

This also fixes a bad bug where default_script pointed to "" somewhere
in static memory instead of an array of PATH_MAX size.  This fixes a
crash when compiled with clang where changing this setting would try
to write a string possibly as large as PATH_MAX and overwrite other
static data.

Finally, make ssl_ca_file static to match all the other strings that
represent files or directories.  Make it a special setting so static
memory is never freed.  As an added bonus, ssl_ca_file is now tilde
expanded.
Diffstat (limited to 'freebsd')
0 files changed, 0 insertions, 0 deletions