use g_warning not printf
This commit is contained in:
parent
ded198f74f
commit
a6815038d6
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ static void stringvalue()
|
||||||
entry.type = Config_String;
|
entry.type = Config_String;
|
||||||
entry.value.string = g_strdup(cparsetext+1); /* drop the left quote */
|
entry.value.string = g_strdup(cparsetext+1); /* drop the left quote */
|
||||||
if (entry.value.string[cparseleng-2] != '"')
|
if (entry.value.string[cparseleng-2] != '"')
|
||||||
printf("warning: improperly terminated string on line %d\n",
|
g_warning("improperly terminated string on line %d",
|
||||||
lineno);
|
lineno);
|
||||||
else
|
else
|
||||||
entry.value.string[cparseleng-2] = '\0';
|
entry.value.string[cparseleng-2] = '\0';
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue