From 96361b39518e128a8f9f25524f1cf107242cb415 Mon Sep 17 00:00:00 2001 From: Akihiro Sagawa Date: Sun, 30 Jan 2011 00:39:32 +0900 Subject: [PATCH] wrc: Don't match a po message if a same msgid message is defined, but its msgctxt is null. --- tools/wrc/po.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wrc/po.c b/tools/wrc/po.c index d7aabc52e70..ef1e9f29f5f 100644 --- a/tools/wrc/po.c +++ b/tools/wrc/po.c @@ -364,7 +364,7 @@ static po_message_t find_message( po_file_t po, const char *msgid, const char *m { if (strcmp( po_message_msgid( msg ), msgid )) continue; if (!msgctxt) break; - if (!(context = po_message_msgctxt( msg ))) break; + if (!(context = po_message_msgctxt( msg ))) continue; if (!strcmp( context, msgctxt )) break; } return msg;