diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:35:43 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:35:43 +0000 |
commit | dd5c85207ef41b4afd03a24801a38bbc270d6364 (patch) | |
tree | de8b51cf2f9078c069c70048e216cd6863c33910 | |
parent | c608e76a8d1d0e75942d491f1349526d14e9ec38 (diff) | |
download | gvfs-dd5c85207ef41b4afd03a24801a38bbc270d6364.tar.gz |
Empty etag strings are parsed as NULL
Original git commit by Alexander Larsson <alexl@redhat.com> at 1185361340 +0200
svn path=/trunk/; revision=716
-rw-r--r-- | daemon/gvfsjobopenforwrite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/gvfsjobopenforwrite.c b/daemon/gvfsjobopenforwrite.c index c8a2d691..d845df36 100644 --- a/daemon/gvfsjobopenforwrite.c +++ b/daemon/gvfsjobopenforwrite.c @@ -101,7 +101,8 @@ g_vfs_job_open_for_write_new (DBusConnection *connection, job->filename = path; job->mode = mode; - job->etag = g_strdup (etag); + if (*etag != 0) + job->etag = g_strdup (etag); job->make_backup = make_backup; job->backend = backend; |