commit b3f705ba181e75f2f2b1154fb76f5125700995cf
parent c2caf056ec49af47c7b24d5f745c97a91fb24985
Author: Mauricio Günther <mauricio@140774ce-b5e7-0310-ab8b-a85725594a96>
Date: Wed, 14 Mar 2012 17:41:28 +0000
at least somehow working
Diffstat:
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/ext/gnunet-fuse.c b/src/ext/gnunet-fuse.c
@@ -308,13 +308,16 @@ run (void *cls,
const struct GNUNET_CONFIGURATION_Handle *cfg)
{
ret = 0;
- int c = 0;
- while (args[c] != NULL)
+ int argc = 0;
+ while (args[argc] != NULL)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "`%s'\n", args[c]);
- c++;
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "`%s'\n", args[argc]);
+ argc++;
}
- fuse_main(c, args, &fops, NULL);
+ if (argc > 0)
+ fuse_main(argc, args, &fops, NULL);
+ else
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No fuse arguments given\n");
}
/**