Fix "missing sentinel in function call" with help of

http://stackoverflow.com/questions/12095865/spurious-missing-sentinel-in-function-call

svn path=/trunk/; revision=50830
This commit is contained in:
Jörg Mayer 2013-07-23 12:08:07 +00:00
parent b1627f16fe
commit ba356ca6a0
1 changed files with 2 additions and 2 deletions

View File

@ -486,11 +486,11 @@ void WiresharkApplication::setLastOpenDir(const char *dir_name)
if (dir_name) {
len = strlen(dir_name);
if (dir_name[len-1] == G_DIR_SEPARATOR) {
new_last_open_dir = g_strconcat(dir_name, NULL);
new_last_open_dir = g_strconcat(dir_name, (char *)NULL);
}
else {
new_last_open_dir = g_strconcat(dir_name,
G_DIR_SEPARATOR_S, NULL);
G_DIR_SEPARATOR_S, (char *)NULL);
}
if (last_open_dir == NULL ||