Skip to content
Snippets Groups Projects
Commit 09c75ae3 authored by rswindell's avatar rswindell
Browse files

Fixed possible NULL-pointer dereference in play().

parent cfcc9041
Branches
Tags
No related merge requests found
......@@ -68,11 +68,13 @@ void play(char *freq, char *dur)
if(dur==NULL)
dur="0";
if(freq==NULL)
freq="0";
d=atoi(dur);
if(isdigit(*freq))
f=atoi(freq);
else
else
switch(toupper(*freq)) {
case 'O': /* default octave */
if(isdigit(*dur))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment