forked from osmocom/wireshark
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:
parent
b1627f16fe
commit
ba356ca6a0
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue