Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37881491
en ru br
ALT Linux repositórios
S:4.2.1-alt1_1

Group :: Desenvolvimento/Outros
RPM: czmq

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: czmq-4.2.0-zarmour.patch
Download


diff --git a/src/zarmour.c b/src/zarmour.c
index a0ecc4c2..273eb54c 100644
--- a/src/zarmour.c
+++ b/src/zarmour.c
@@ -655,8 +655,10 @@ s_armour_decode (zarmour_t *self, const char *test_string, const char *expected,
     assert (chunk);
     if (verbose)
         zsys_debug ("    decoded '%s' into '%s'", test_string, (char *) zchunk_data (chunk));
-    assert (zchunk_size (chunk) == strlen (expected) + 1);
-    assert (streq ((char *) zchunk_data (chunk), expected));
+    assert (zchunk_size (chunk) == strlen (expected) + 1
+            || (strlen (expected) == 0 && zchunk_size (chunk) == 0));
+    assert ((strlen (expected) == 0 && zchunk_size (chunk) == 0)
+            || streq ((char *) zchunk_data (chunk), expected));
     zchunk_destroy (&chunk);
 }
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009