summaryrefslogtreecommitdiffstats
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ide_smart.c')
-rw-r--r--plugins/check_ide_smart.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index b13c7101..dd88e124 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -204,15 +204,17 @@ static check_ide_smart_config_wrapper process_arguments(int argc, char **argv) {
204 default: 204 default:
205 usage5(); 205 usage5();
206 } 206 }
207 if (optind < argc) { 207 }
208 result.config.device = argv[optind];
209 }
210 208
211 if (!result.config.device) { 209 if (optind < argc) {
212 print_help(); 210 result.config.device = argv[optind];
213 exit(STATE_UNKNOWN); 211 }
214 } 212
213 if (result.config.device == NULL) {
214 print_help();
215 exit(STATE_UNKNOWN);
215 } 216 }
217
216 return result; 218 return result;
217} 219}
218 220