Dupe OS type for ident string before using it
This commit is contained in:
parent
f3f53db4d7
commit
458c5109be
1 changed files with 1 additions and 1 deletions
|
@ -1188,7 +1188,7 @@ get_sys_name (void)
|
||||||
{
|
{
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
if (uname (&name) != -1)
|
if (uname (&name) != -1)
|
||||||
sys_name = name.sysname;
|
sys_name = g_strdup(name.sysname);
|
||||||
else
|
else
|
||||||
sys_name = "Unix";
|
sys_name = "Unix";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue