Skip to content

Commit

Permalink
output prefix bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
calkan committed May 9, 2019
1 parent cf2b6d9 commit 3dc4289
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,10 @@ void get_working_directory(parameters *params){


directory = strrchr(params->outprefix, '/');
prefix = directory + 1;
prefix = NULL;
set_str( &prefix, directory + 1);
if ( debug_mode)
fprintf (stderr, "prefix: %s\n", prefix);

if (directory == NULL){
//set_str(&(params->outdir), "./");
Expand All @@ -538,7 +541,11 @@ void get_working_directory(parameters *params){

free( params->outprefix);
params->outprefix = NULL;
if ( debug_mode)
fprintf (stderr, "prefix2: %s\n", prefix);

set_str( &(params->outprefix), prefix);
free (prefix);
}

char *get_file_name(char *path)
Expand Down
2 changes: 1 addition & 1 deletion sonic

0 comments on commit 3dc4289

Please sign in to comment.