Skip to content

Instantly share code, notes, and snippets.

@rjenkins
Created February 19, 2013 01:23
Show Gist options
  • Save rjenkins/4982307 to your computer and use it in GitHub Desktop.
Save rjenkins/4982307 to your computer and use it in GitHub Desktop.
char *work_unit_name_path = malloc(snprintf(NULL, 0, "%s%s", "/", cluster_config->work_unit_name) + 1);
sprintf(work_unit_name_path, "%s%s", "/", cluster_config->work_unit_name);
int work_unit_ret_val = zoo_wget_children(zh, work_unit_name_path,
verify_integrity_watcher, NULL,
(struct String_vector *) malloc(sizeof(struct String_vector)));
free(work_unit_name_path);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment