Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile empty Haskell strings to empty C strings rather than NULL #9

Merged
merged 1 commit into from
Feb 6, 2014

Conversation

agacek
Copy link
Contributor

@agacek agacek commented Jan 31, 2014

Right now Ivory compiles the empty Haskell string "" to NULL rather than to "". This can cause inadvertent seg faults.

@leepike
Copy link
Contributor

leepike commented Jan 31, 2014

The current behavior is safe but could be inconvenient.

James, could the pull request result in unsafe behavior?

leepike added a commit that referenced this pull request Feb 6, 2014
Compile empty Haskell strings to empty C strings rather than NULL
@leepike leepike merged commit 3ef5d87 into GaloisInc:master Feb 6, 2014
@leepike
Copy link
Contributor

leepike commented Feb 6, 2014

This is a bug. Thanks!

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.

2 participants