Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fix a missing variable referencing.
Browse files Browse the repository at this point in the history
Also put an explicit comment on something newer gccs could complain
about.

Signed-off-by: Gustavo Lima Chaves <[email protected]>
  • Loading branch information
Gustavo Lima Chaves committed Jun 8, 2017
1 parent 2b87395 commit e234b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/flow/sol-flow-node-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ split_option(const char *input, const char **key, unsigned int *key_len, const c
{
const char *equal = strchr(input, '=');

if (!equal || equal == input || equal + 1 == '\0')
if (!equal || equal == input || *equal == 0 || *(equal + 1) == '\0')
return -EINVAL;

*key = input;
Expand Down
1 change: 1 addition & 0 deletions src/modules/flow/form/form.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,7 @@ integer_custom_open(struct sol_flow_node *node,

mdata->blink_on = true;

/* outputs truncated on purpose -- only the return value matters */
n_max = snprintf(sbuf, 1, "%+" PRId32 "", mdata->base.state.max);
SOL_INT_CHECK_GOTO(n_max, < 0, err);

Expand Down

0 comments on commit e234b35

Please sign in to comment.