diff options
Diffstat (limited to 'rtemsbsd/nfsclient/nfs.c')
-rw-r--r-- | rtemsbsd/nfsclient/nfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rtemsbsd/nfsclient/nfs.c b/rtemsbsd/nfsclient/nfs.c index b68bab31..53b0ff13 100644 --- a/rtemsbsd/nfsclient/nfs.c +++ b/rtemsbsd/nfsclient/nfs.c @@ -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"); |