]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/tests/sleep_test.c: Silence spurious warning.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 16 Dec 2013 19:32:43 +0000 (20:32 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 16 Dec 2013 19:32:43 +0000 (20:32 +0100)
ChangeLog
grub-core/tests/sleep_test.c

index 62759bb25759369df807faef598e6394c175ebd8..faf8d81d56b9c1537d3d7139b71f2a2c3d2f28cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/tests/sleep_test.c: Silence spurious warning.
+
 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
index 98ea5726231df3575b4c894c2671b1e85c1c0a14..3dda303124d68e410a2ce8120a4e6014542fcfc2 100644 (file)
@@ -32,7 +32,7 @@ static void
 sleep_test (void)
 {
   struct grub_datetime st, en;
-  grub_int32_t stu, enu;
+  grub_int32_t stu = 0, enu = 0;
   grub_test_assert (!grub_get_datetime (&st), "Couldn't retrieve start time");
   grub_millisleep (10000);
   grub_test_assert (!grub_get_datetime (&en), "Couldn't retrieve end time");