mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-27 09:58:44 +01:00
use exit
This commit is contained in:
parent
88a5ca8e1c
commit
a4130d1526
1 changed files with 2 additions and 2 deletions
2
star.c
2
star.c
|
@ -555,7 +555,7 @@ int main( int argc, char* argv[] )
|
||||||
struct options *o = malloc( sizeof( struct options ) );
|
struct options *o = malloc( sizeof( struct options ) );
|
||||||
|
|
||||||
if ( s == NULL || o == NULL ) {
|
if ( s == NULL || o == NULL ) {
|
||||||
return 1; /* Guys, we're out of memory */
|
exit( 1 ); /* Guys, we're out of memory */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* trick to count how many levels we have */
|
/* trick to count how many levels we have */
|
||||||
|
|
Loading…
Reference in a new issue