TheAlgorithms / C

Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
https://thealgorithms.github.io/C
GNU General Public License v3.0
18.97k stars 4.32k forks source link

[BUG] Fix LGTM/CodeQL alerts #960

Open Panquesito7 opened 2 years ago

Panquesito7 commented 2 years ago

Description

There are 10+ CodeQL alerts on the whole repository. This should be fixed immediately.

Expected behavior

CodeQL/LGTM alerts should be fixed.

Actual behavior

We have 10+ CodeQL/LGTM alerts.

Possible fix

No response

Steps to reproduce

Not applicable here, IMO.

Context

This makes our code less elegant and professional. We should try to use the best code possible.

Additional information

Anyone who wants to work on this, feel free to do so. Just make sure you comment here before working on the issue. 🙂

Kim8178184977 commented 2 years ago

is there any one working on it

Panquesito7 commented 2 years ago

is there any one working on it

Nope, not currently. Do you wanna work on this? 🙂

Kim8178184977 commented 2 years ago

sure I will try My best sir 😊

Panquesito7 commented 2 years ago

Cool, thank you! Let us know if you need any help.

Kim8178184977 commented 2 years ago

sir, i can't find the repository can you give me the name of it

Panquesito7 commented 2 years ago

Here you can see all the alerts/warnings: https://lgtm.com/projects/g/TheAlgorithms/C/context:cpp