Skip to content

Commit

Permalink
Fix: case sensitive linting (#1079) (#1081)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2481d17)

Co-authored-by: Christoph Krämer <[email protected]>
  • Loading branch information
mergify[bot] and Kraemii authored Apr 14, 2022
1 parent 5eb689e commit ff29886
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 @@ -120,7 +120,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.
*/
gint
Expand Down Expand Up @@ -159,10 +159,9 @@ reverse_search (GSList **def_func_tree, GSList *finfo)
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 ff29886

Please sign in to comment.