mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 21:24:28 -08:00
check whether a connection exists before executing certain commands
This commit is contained in:
@@ -52,6 +52,11 @@ int mfshell_cmd_folder(mfshell * mfshell, int argc, char *const argv[])
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (mfshell->conn == NULL) {
|
||||
fprintf(stderr, "conn is NULL\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
switch (argc) {
|
||||
case 1:
|
||||
folderkey = NULL;
|
||||
|
||||
Reference in New Issue
Block a user