]> Kevux Git Server - fll/commitdiff
Bugfix: set error code to invalid parameter when parameters are missing
authorKevin Day <kevin@kevux.org>
Sun, 11 Mar 2012 05:30:11 +0000 (23:30 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 11 Mar 2012 05:30:11 +0000 (23:30 -0600)
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_extended_read/c/fss_extended_read.c

index 5eca541dcda5f2c5465601f4578d0d7f3f7e3865..a06236335083d97b67761733126af83a4558e62d 100644 (file)
@@ -295,6 +295,7 @@ extern "C"{
       } // for
     } else {
       fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: you failed to specify one or more files");
+      status = f_invalid_parameter;
     }
 
     fss_basic_list_read_delete_data(data);
index 5b61a11e7b99c6bfc1e6947f2c470e4fefce7696..58a81fa3967eab000d7b8521f634642bea896022 100644 (file)
@@ -287,6 +287,7 @@ extern "C"{
       }
     } else {
       fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: you failed to specify one or more files");
+      status = f_invalid_parameter;
     }
 
     fss_basic_read_delete_data(data);
index eefbf47ee1cc7b763ed30ec019d628b87881df59..e5dde612ae5c3daa8d8f689aafb8e4dc47e8d77a 100644 (file)
@@ -294,6 +294,7 @@ extern "C"{
       } // for
     } else {
       fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: you failed to specify one or more files");
+      status = f_invalid_parameter;
     }
 
     fss_extended_read_delete_data(data);