$NetBSD: patch-src_lib_wp6graphicsfilenamepacket_cpp,v 1.2 2011/08/04 23:35:43 wiz Exp $

Fix bug, caught by clang.
http://bugzilla.abisource.com/show_bug.cgi?id=13128

--- src/lib/WP6GraphicsFilenamePacket.cpp~	2010-08-26 11:35:21.000000000 +0000
+++ src/lib/WP6GraphicsFilenamePacket.cpp
@@ -42,7 +42,7 @@ WP6GraphicsFilenamePacket::~WP6GraphicsF
 
 void WP6GraphicsFilenamePacket::_readContents(WPXInputStream *input, WPXEncryption *encryption)
 {
-	if ((m_flags && 0x01) == 0x00)
+	if ((m_flags & 0x01) == 0x00)
 		return;
 	uint16_t tmpNumChildIds = readU16(input, encryption);
 	for (uint16_t i = 0; i < tmpNumChildIds; i++)
