Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. diff --git a/src/session.c b/src/session.c
  2. index f323266..1d8a54a 100644
  3. --- a/src/session.c
  4. +++ b/src/session.c
  5. @@ -986,8 +986,13 @@ SR_PRIV int sr_packet_copy(const struct sr_datafeed_packet *packet,
  6. case SR_DF_META:
  7. meta = packet->payload;
  8. meta_copy = g_malloc(sizeof(struct sr_datafeed_meta));
  9. +#if 0
  10. meta_copy->config = g_slist_copy_deep(meta->config,
  11. (GCopyFunc)copy_src, NULL);
  12. +#else
  13. + meta_copy->config = g_slist_copy(meta->config);
  14. + g_slist_foreach(meta_copy->config, (GCopyFunc)copy_src, NULL);
  15. +#endif
  16. (*copy)->payload = meta_copy;
  17. break;
  18. case SR_DF_LOGIC:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement