wdfs-1.4.2-fix-Waddress.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff --git a/src/wdfs-main.c b/src/wdfs-main.c
  2. index 9bd5244..a9917b7 100644
  3. --- a/src/wdfs-main.c
  4. +++ b/src/wdfs-main.c
  5. @@ -697,7 +697,7 @@ static int wdfs_open(const char *localpath, struct fuse_file_info *fi)
  6. ">> %s() by PID %d\n", __func__, fuse_get_context()->pid);
  7. }
  8. - assert(localpath && &fi);
  9. + assert(localpath && fi);
  10. struct open_file *file = g_new0(struct open_file, 1);
  11. file->modified = false;
  12. @@ -763,7 +763,7 @@ static int wdfs_read(
  13. if (wdfs.debug == true)
  14. print_debug_infos(__func__, localpath);
  15. - assert(localpath && buf && &fi);
  16. + assert(localpath && buf && fi);
  17. struct open_file *file = (struct open_file*)(uintptr_t)fi->fh;
  18. @@ -785,7 +785,7 @@ static int wdfs_write(
  19. if (wdfs.debug == true)
  20. print_debug_infos(__func__, localpath);
  21. - assert(localpath && buf && &fi);
  22. + assert(localpath && buf && fi);
  23. /* data below svn_basedir is read-only */
  24. if (wdfs.svn_mode == true && g_str_has_prefix(localpath, svn_basedir))
  25. @@ -961,7 +961,7 @@ static int wdfs_ftruncate(
  26. if (wdfs.debug == true)
  27. print_debug_infos(__func__, localpath);
  28. - assert(localpath && &fi);
  29. + assert(localpath && fi);
  30. /* data below svn_basedir is read-only */
  31. if (wdfs.svn_mode == true && g_str_has_prefix(localpath, svn_basedir))