+2006-04-30 Tim-Philipp Müller <tim at centricular dot net>
+
+ * tools/gst-run.c: (get_candidates), (main):
+ Fix wrong g_file_test() usage (see glib docs for why it doesn't
+ work); fix typo in error message. Fixes #340079.
+
2006-04-29 Thomas Vander Stichele <thomas at apestaart dot org>
* common/Makefile.am:
while (cur != &dirs[0]) {
--cur;
- if (!g_file_test (*cur, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))
+ if (!g_file_test (*cur, G_FILE_TEST_EXISTS) ||
+ !g_file_test (*cur, G_FILE_TEST_IS_DIR)) {
continue;
+ }
gdir = g_dir_open (*cur, 0, &error);
if (!gdir) {
highest = NULL;
/* otherwise, just look up the highest version */
- g_hash_table_foreach (candidates, (GHFunc) find_highest_version, &highest);
+ if (candidates) {
+ g_hash_table_foreach (candidates, (GHFunc) find_highest_version,
+ &highest);
+ }
+
if (highest == NULL) {
- g_print ("ERROR: No version of tool %s not found.\n", base);
+ g_print ("ERROR: No version of tool %s found.\n", base);
return 1;
}
dir = g_hash_table_lookup (candidates, highest);