Skip to content

Commit

Permalink
LGTM only supports C++ style comments...
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 19, 2019
1 parent 6f7bd71 commit 2bae6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/usb-libusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ find_device(usb_cb_t cb, /* I - Callback function */
protocol = 0;

for (altset = 0, altptr = ifaceptr->altsetting;
altset < (uint8_t)ifaceptr->num_altsetting;
altset < ifaceptr->num_altsetting; // lgtm [cpp/comparison-with-wider-type]
altset ++, altptr ++)
{
/*
Expand Down
2 changes: 1 addition & 1 deletion cgi-bin/var.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ cgi_initialize_post(void)
*/

length = (size_t)strtol(content_length, NULL, 10);
data = malloc(length + 1); /* lgtm [cpp/uncontrolled-allocation-size] */
data = malloc(length + 1); // lgtm [cpp/uncontrolled-allocation-size]

if (data == NULL)
return (0);
Expand Down

0 comments on commit 2bae6fc

Please sign in to comment.