Skip to content

Fix uninitialized bug into cstringlength#83

Open
carlo-bramini wants to merge 1 commit into
slviajero:mainfrom
carlo-bramini:fix-cstringlength-bug
Open

Fix uninitialized bug into cstringlength#83
carlo-bramini wants to merge 1 commit into
slviajero:mainfrom
carlo-bramini:fix-cstringlength-bug

Conversation

@carlo-bramini
Copy link
Copy Markdown

I made a project with VS 2022 and I tried to compile the BASIC interpreter, but it refused to build basic.c because there is a bug into cstringlength().
Actually the variable a is not initialized to zero and Microsoft C compiler signals this as an error.
Attached patch fixes this error in all versions of the interpreter.

I made a project with VS 2022 and I tried to compile the BASIC interpreter, but it refused to build basic.c because there is a bug into cstringlength().
Actually the variable "a" is not initialized to zero and Microsoft C compiler signals this as an error.
Attached patch fixes this error in all versions of the interpreter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant