Skip to content

Commit

Permalink
Fix: case sensitive linting (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii authored Apr 12, 2022
1 parent 7641e03 commit 2481d17
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nasl/lint.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ list_cmp1 (gconstpointer lelem, gconstpointer data)
/**
* @brief Check if an undefined called function is needed or not.
* This is the case in which the function is called from a
* neested and defined function but never called.
* nested and defined function but never called.
* @return 1 if the function is needed, 0 otherwise.
*/
static gint
Expand Down Expand Up @@ -161,10 +161,9 @@ reverse_search (GSList **def_func_tree, GSList *finfo)
static gint
list_cmp (gconstpointer lelem, gconstpointer data)
{
if (!lelem || !data)
return -1;

return (strcasecmp (lelem, data));
if (data)
return (g_strcmp0 (lelem, data));
return -1;
}

/**
Expand Down

0 comments on commit 2481d17

Please sign in to comment.