mainloop test: fix a small typo
authorRyan Lortie <desrt@desrt.ca>
Tue, 15 Jan 2013 20:22:35 +0000 (15:22 -0500)
committerRyan Lortie <desrt@desrt.ca>
Tue, 15 Jan 2013 20:22:35 +0000 (15:22 -0500)
This g_assert() could never possibly fail, as it was.

glib/tests/mainloop.c

index 66871a3..e66216d 100644 (file)
@@ -912,7 +912,7 @@ write_bytes (gint         fd,
     return FALSE;
 
   /* Detect if we run before we should */
-  g_assert (to_write >= 0);
+  g_assert (*to_write >= 0);
 
   limit = MIN (*to_write, sizeof zeros);
   *to_write -= write (fd, zeros, limit);