Skip to content

bestline: Avoid null character warning for empty commands#102

Merged
rakitzis merged 1 commit into
rakitzis:masterfrom
MaxGyver83:bestline-avoid-null-char-warning
Jul 1, 2024
Merged

bestline: Avoid null character warning for empty commands#102
rakitzis merged 1 commit into
rakitzis:masterfrom
MaxGyver83:bestline-avoid-null-char-warning

Conversation

@MaxGyver83
Copy link
Copy Markdown
Contributor

When using rc linked with bestline, you get this warning after executing an "empty" command:

warning: null character ignored

This pull request fixes this by overwriting the final \0 with \n also for empty commands.

@rakitzis rakitzis merged commit d6b2dc9 into rakitzis:master Jul 1, 2024
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