mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
nfsclient: Only parse for options when present.
This commit is contained in:
@@ -1809,7 +1809,10 @@ RpcUdpServer nfsServer = 0;
|
||||
int e = -1;
|
||||
char *path = mt_entry->dev;
|
||||
const char *options = (const char*) data;
|
||||
bool verbose = strstr(options, "-v") != NULL;
|
||||
bool verbose = false;
|
||||
|
||||
if (options != NULL)
|
||||
verbose = strstr(options, "-v") != NULL;
|
||||
|
||||
if (rpcUdpInit (verbose) < 0) {
|
||||
fprintf (stderr, "error: initialising RPC\n");
|
||||
|
Reference in New Issue
Block a user