let slug_count returns -1 if error occurs
Add char ** errstr to r3_node_find_common_prefix