Description: Avoid a warn_unused_result warning (resulting in FTBFS) by taking the return value of realpath() instead
Author: Iain Lane <laney@debian.org>
Forwarded: not-needed

--- appdata-tools-0.1.7.orig/src/appdata-self-test.c
+++ appdata-tools-0.1.7/src/appdata-self-test.c
@@ -35,7 +35,7 @@ appdata_test_get_data_file (const gchar
 {
 	gboolean ret;
 	gchar *full;
-	char full_tmp[PATH_MAX];
+	char *full_tmp = NULL;
 
 	/* check to see if we are being run in the build root */
 	full = g_build_filename ("..", "data", filename, NULL);
@@ -54,9 +54,9 @@ appdata_test_get_data_file (const gchar
 out:
 	/* canonicalize path */
 	if (full != NULL && !g_str_has_prefix (full, "/")) {
-		realpath (full, full_tmp);
+		full_tmp = realpath (full, NULL);
 		g_free (full);
-		full = g_strdup (full_tmp);
+		full = full_tmp;
 	}
 	return full;
 }
