~ruther/CTU-FEE-B0B35APO-Semestral-project

3fbe4c80e9b84efde1cd24260749a0b4d1b7eeb5 — František Boháček 4 years ago 6615fb4
fix: execute program without argument
1 files changed, 2 insertions(+), 2 deletions(-)

M file-browser/src/file_open.c
M file-browser/src/file_open.c => file-browser/src/file_open.c +2 -2
@@ 96,12 96,12 @@ static opened_file_state_t file_open_text(file_t *file, exec_options_t *options,
static opened_file_state_t file_open_executable(file_t *file, exec_options_t *options,
                                 fileaccess_state_t state) {
  opened_file_state_t opened = opened_file_create();
  

  if (file->permissions & S_IEXEC) {
    // executable
    file_prepare_before_open();
    executing_file_or_error_t executing_or_error =
        fileaccess_file_execute(state, file, "");
        fileaccess_file_execute(state, file, NULL);
    if (executing_or_error.error) {
      opened.error = executing_or_error.error;
      return opened;