~3v1n0/bamf/mime-types-fix-crash-1058260

« back to all changes in this revision

Viewing changes to src/bamf-application.c

  • Committer: Marco Trevisan (Treviño)
  • Date: 2012-10-01 12:05:18 UTC
  • Revision ID: mail@3v1n0.net-20121001120518-h3zg1lxr16cn6wi0
Daemon, BamfApplication: no need to have an empty array... Just pass null to g_variant_new_strv

Show diffs side-by-side

added added

removed removed

Lines of Context:
838
838
    }
839
839
  else
840
840
    {
841
 
      const gchar **empty = { NULL };
842
 
      list = g_variant_new_strv (empty, 0);
 
841
      list = g_variant_new_strv (NULL, 0);
843
842
    }
844
843
 
845
844
  value = g_variant_new ("(@as)", list);