Sprinkle a couple of assert(3)ions.
This commit is contained in:
@@ -104,6 +104,9 @@ xbps_fetch_file(const char *uri,
|
||||
int fd = -1, rv = 0;
|
||||
bool restart = false;
|
||||
|
||||
assert(uri != NULL);
|
||||
assert(outputdir != NULL);
|
||||
|
||||
fetchLastErrCode = 0;
|
||||
fetchTimeout = 30; /* 30 seconds of timeout */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user