Skip to content

Commit

Permalink
cleanup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCrion committed Apr 14, 2022
1 parent 77a14b6 commit 1c37c7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gboolean config_expect_token ( GScanner *scanner, gint token, gchar *fmt, ...)
va_start(args,fmt);
errmsg = g_strdup_vprintf(fmt,args);
va_end(args);
g_scanner_error(scanner,errmsg);
g_scanner_error(scanner,"%s",errmsg);
g_free(errmsg);

return FALSE;
Expand Down
2 changes: 1 addition & 1 deletion src/jpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct json_object *jpath_filter (GScanner *scanner, struct json_object *obj )
gchar *key=NULL;
GTokenType type;
GTokenValue val;
gboolean eq;
gboolean eq = FALSE;

next = json_object_new_array();
type = g_scanner_get_next_token(scanner);
Expand Down

0 comments on commit 1c37c7c

Please sign in to comment.