kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
111 stars 28 forks source link

Do not loop infinitely if there is no argument passed to kiwix-serve. #338

Closed mgautierfr closed 7 years ago

mgautierfr commented 7 years ago

If there is no argument, optind==argc==1. We must not try to look into argv[1] but we need to break the loop anyway.