~canonical-scott/libnih/trunk

« back to all changes in this revision

Viewing changes to nih/tests/test_string.c

  • Committer: Scott James Remnant
  • Date: 2009-11-28 20:25:03 UTC
  • Revision ID: scott@netsplit.com-20091128202503-z713wgvkats6c5m2
* nih-dbus-tool/main.c (source_file_path, header_file_path): Use a
not reached assertion rather than an initial one, to avoid gcc
warnings.
* nih/tests/test_string.c (test_array_addp),
* nih/tests/test_logging.c (test_log_message): Add a couple more
initialisations for gcc, found with -O2

Show diffs side-by-side

added added

removed removed

Lines of Context:
765
765
test_array_addp (void)
766
766
{
767
767
        char   **array, **ret;
768
 
        char    *ptr1, *ptr2;
 
768
        char    *ptr1 = NULL;
 
769
        char    *ptr2 = NULL;
769
770
        size_t   len;
770
771
 
771
772
        TEST_FUNCTION ("nih_str_array_addn");