Silence compiler warning in json test case

This avoids

    error: zero-length gnu_printf format string

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
Jan Kiszka 2010-10-16 19:42:43 +02:00 committed by Luiz Capitulino
parent 7af72c24ae
commit e7a06af838
1 changed files with 3 additions and 1 deletions

View File

@ -639,7 +639,9 @@ END_TEST
START_TEST(empty_input)
{
QObject *obj = qobject_from_json("");
const char *empty = "";
QObject *obj = qobject_from_json(empty);
fail_unless(obj == NULL);
}
END_TEST