fprintf to print error to stderr

This commit is contained in:
c9s 2014-06-02 06:53:31 +08:00
parent 9271f0bf08
commit b2a9ad47d8

View file

@ -502,7 +502,7 @@ node * r3_tree_insert_pathl_(node *tree, const char *path, int path_len, route *
char *err = NULL;
int slug_cnt = slug_count(path, path_len, &err);
if (err) {
printf("Can not insert path '%s'. Error: %s\n", path, err);
fprintf(stderr, "Can not insert path '%s'. Error: %s\n", path, err);
free(err);
return NULL;
}