]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Tame improper xmalloc warning
authorMaria Matejka <mq@ucw.cz>
Wed, 26 Jun 2024 15:21:26 +0000 (17:21 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 26 Jun 2024 15:21:26 +0000 (17:21 +0200)
lib/xmalloc.c

index 38f6d0cf868ad9e78fe5227a57cf46ce2a2d38f6..74348d11b2b831223bb0bfedb5d3cdc1e2c61881 100644 (file)
@@ -65,9 +65,8 @@ xmalloc(uint size)
 void *
 xrealloc(void *ptr, uint size)
 {
-  void *p = realloc(ptr, size);
-
   MINFO(ptr, 0, 2);
+  void *p = realloc(ptr, size);
   MINFO(p, size, 3);
 
   if (p)