Skip to content

Commit a5e3783

Browse files
committed
Older Space-Track TLE sets lack the object name, triggering this assert(). In such cases, just omit the object name (we've got the NORAD and international designation anyway).
1 parent e03c807 commit a5e3783

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sat_id.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,8 +1674,8 @@ int main( const int argc, const char **argv)
16741674
{
16751675
char *tptr = strchr( objects[i].matches[0].text, ':');
16761676

1677-
assert( tptr); /* if only one match, output */
1678-
printf( " %s", tptr + 1); /* the object name */
1677+
if( tptr) /* if only one match, output */
1678+
printf( " %s", tptr + 1); /* the object name */
16791679
}
16801680
if( objects[i].n_matches)
16811681
n_matched++;

0 commit comments

Comments
 (0)