Skip to content

Commit

Permalink
Minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtsyMacaw committed Apr 22, 2024
1 parent fc9685c commit 4c50b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@ static const char *help =
static gboolean process_args(int argc, char *argv[])
{

int c;
while (TRUE)
{
int option_index = 0;
c = getopt_long(argc, argv, "hl:vc:m:b:T:R:L:B:r:c:p:C:sP:n",
int c = getopt_long(argc, argv, "hl:vc:m:b:T:R:L:B:r:c:p:C:sP:n",
long_options, &option_index);
if (c == -1)
{
Expand Down Expand Up @@ -342,6 +341,7 @@ static gboolean get_buttons(FILE *json)
jsmntok_t *tok = malloc(default_size * sizeof(jsmntok_t));
if (!tok)
{
free(buffer);
g_warning("Failed to allocate memory\n");
return TRUE;
}
Expand Down

0 comments on commit 4c50b34

Please sign in to comment.