commit | 4f13d03213f5a121c437a261d6fcb522049df180 | [log] [tgz] |
---|---|---|
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | Mon Sep 16 11:20:29 2013 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Mon Sep 16 14:07:20 2013 +0200 |
tree | 8dce9ddbfc87808743bb577c565821047379da5e | |
parent | 0760a83910a487e0bdd4e958829616fd491d95ba [diff] |
ctrl: Set a generic reply when it hasn'n been set When verification failed and the reply string was not updated, the message "Someone forgot to fill in the reply." was shown instead of the default "Value failed verification." message. This patch changes the default reply handling in ctrl_cmd_handle() by setting the reply to NULL initially and then checking it at the end. If it hasn't been set, a generic message is assigned and an error is logged.