Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smokeview source: correcion to ini file output when using -v option #2032

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Source/smokeview/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,14 +820,11 @@ int main(int argc, char **argv){
Which("fds", &fdsprog);
#endif

if(smv_filename == NULL){
if(smv_filename == NULL && show_version == 1){
InitStartupDirs();
DisplayVersionInfo("Smokeview ");
SMV_EXIT(0);
}
if(show_version==1 || smv_filename==NULL){
PRINTVERSION("smokeview");
return 1;
}
if(CheckSMVFile(smv_filename, smokeview_casedir)==0){
SMV_EXIT(1);
}
Expand Down
12 changes: 7 additions & 5 deletions Source/smokeview/smokeview.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,13 @@ void DisplayVersionInfo(char *progname){
if(FileExistsOrig(fullini_filename)==0)strcpy(fullini_filename, "");
}
}
if(strlen(fullini_filename)>0){
PRINTF("Casename ini : %s\n", fullini_filename);
}
else{
PRINTF("Casename ini : not found\n");
if(smv_filename != NULL || show_version == 0){
if(strlen(fullini_filename) > 0){
PRINTF("Casename ini : %s\n", fullini_filename);
}
else{
PRINTF("Casename ini : not found\n");
}
}
FREEMEMORY(smv_progname);
FREEMEMORY(smv_bindir);
Expand Down
Loading