Skip to content

Commit

Permalink
Check on a filename should have checked the referenced value; the poi…
Browse files Browse the repository at this point in the history
…nter in this case will always be non-NULL
  • Loading branch information
Bill-Gray committed Aug 14, 2023
1 parent ee4a953 commit 1883203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephem0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,7 @@ static int _ephemeris_in_a_file( const char *filename, const double *orbit,
header = (char *)malloc( 1024);
assert( header);
strlcpy_err( header, buff, 1024);
if( alt_file_name)
if( *alt_file_name)
computer_friendly_ofile = fopen_ext( alt_file_name,
is_default_ephem ? "tfcw+" : "fw+");
else
Expand Down

0 comments on commit 1883203

Please sign in to comment.