]> arthur.barton.de Git - netatalk.git/blobdiff - libevent/bufferevent_pair.c
Writing metadata xattr on directories with sticky bit set, FR#94
[netatalk.git] / libevent / bufferevent_pair.c
index 1e20f78b94abe0f3f375f7d608e0528427a8bf48..6ec5cac81567587371dca862bd960d03114dd638 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2010 Niels Provos, Nick Mathewson
+ * Copyright (c) 2009-2012 Niels Provos, Nick Mathewson
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -158,7 +158,7 @@ be_pair_transfer(struct bufferevent *src, struct bufferevent *dst,
        evbuffer_unfreeze(dst->input, 0);
 
        if (dst->wm_read.high) {
-               size_t dst_size = evbuffer_get_length(dst->input);
+               dst_size = evbuffer_get_length(dst->input);
                if (dst_size < dst->wm_read.high) {
                        n = dst->wm_read.high - dst_size;
                        evbuffer_remove_buffer(src->output, dst->input, n);