mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 16:52:01 +00:00
detect empty input to finish app
This commit is contained in:
parent
faea95fbfa
commit
c664d1ba27
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
bzero(buffer, 256);
|
||||
fgets(buffer, 255, stdin);
|
||||
if (buffer == NULL) {
|
||||
if (strlen(buffer) == 0) {
|
||||
break;
|
||||
}
|
||||
if (!daemon) {
|
||||
|
|
Loading…
Reference in a new issue