The commit e2969a9c introduced an assertion
statement to ensure that the
g_file_get_basename returned non-NULL string.
Unfortunately, the assertion has an inverted condition. This leads to crashes
get_unique_target_file function for files that don't have the
edit-name attribute set (i.e just a few GVfs backends). Let's fix the
Fixes: #2825 (closed)