Hi...
In stool it looks like dark green rather than black. Pure black color in stools indicates any bleed in upper intestinal tract. In your case it is dark green so nothing to worry. It may be because of bile pigment due to inadequate feeding.
Next Steps
if you are still worried you can go for investigation stool for occult blood ( not needed -my advice )
Health Tips
feed the child more frequently.