Commit b46971ba authored by Gene Z. Ragan's avatar Gene Z. Ragan Committed by Gene Ragan

Fixed mistake in asserting on a NULL value. Assert if the value is NULL,

2001-01-16  Gene Z. Ragan  <gzr@eazel.com>

	Fixed mistake in asserting on a NULL value. Assert if the
	value is NULL, not non-NULL.

	* libnautilus-extensions/nautilus-file-operations.c:
	(extract_and_ellipsize_file_name_for_dialog):
parent 085e03cc
2001-01-16 Gene Z. Ragan <gzr@eazel.com>
Fixed mistake in asserting on a NULL value. Assert if the
value is NULL, not non-NULL.
* libnautilus-extensions/nautilus-file-operations.c:
(extract_and_ellipsize_file_name_for_dialog):
2001-01-16 Darin Adler <darin@eazel.com>
reviewed by: Gene Ragan <gzr@eazel.com>
......
......@@ -188,9 +188,9 @@ extract_and_ellipsize_file_name_for_dialog (const char *uri)
{
const char *last_part;
char *unescaped, *result;
last_part = g_basename (uri);
g_return_val_if_fail (last_part == NULL, NULL);
g_return_val_if_fail (last_part != NULL, NULL);
unescaped = gnome_vfs_unescape_string_for_display (last_part);
result = ellipsize_string_for_dialog (unescaped);
......
......@@ -188,9 +188,9 @@ extract_and_ellipsize_file_name_for_dialog (const char *uri)
{
const char *last_part;
char *unescaped, *result;
last_part = g_basename (uri);
g_return_val_if_fail (last_part == NULL, NULL);
g_return_val_if_fail (last_part != NULL, NULL);
unescaped = gnome_vfs_unescape_string_for_display (last_part);
result = ellipsize_string_for_dialog (unescaped);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment