void
msg_location_merge (struct msg_location **dstp, const struct msg_location *src)
{
+ struct msg_location *dst = *dstp;
+ if (!dst)
+ {
+ *dstp = msg_location_dup (src);
+ return;
+ }
+
if (dst->file_name != src->file_name)
{
/* Failure. */
return;
}
-
if (msg_point_compare_3way (&dst->p[0], &src->p[0]) > 0)
dst->p[0] = src->p[0];
if (msg_point_compare_3way (&dst->p[1], &src->p[1]) < 0)