[babl] babl_init_db: formats being with first char of line
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl_init_db: formats being with first char of line
- Date: Mon, 14 Nov 2016 13:28:41 +0000 (UTC)
commit 2af52473181a94875353e54617d5b3d24f7cdcd0
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Nov 14 14:28:31 2016 +0100
babl_init_db: formats being with first char of line
babl/babl.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/babl/babl.c b/babl/babl.c
index 72f2327..b7e45c9 100644
--- a/babl/babl.c
+++ b/babl/babl.c
@@ -351,17 +351,16 @@ static void babl_init_db (const char *path)
default:
if (!from_format)
{
- from_format = (void*)babl_db_find(babl_format_db(), &token[1]);
+ from_format = (void*)babl_db_find(babl_format_db(), token);
if (!from_format)
return;
}
else
{
- to_format = (void*)babl_db_find(babl_format_db(), &token[1]);
+ to_format = (void*)babl_db_find(babl_format_db(), token);
if (!to_format)
return;
}
-
break;
}
token = strtok_r (NULL, seps, &tokp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]