[PATCH openEuler-5.10 557/582] lib/math/rational.c: fix divide by zero