- mDOMStringRef href;
-
- g_return_if_fail(node != NULL);
- href = mdom_node_get_attribute_ns(node, DOM_CONST_STRING("href"), XLINK_NS_URI);
-
- if (href != NULL) {
- pid_t pid;
-
- g_assert(main_area != NULL);
- gdk_window_set_cursor (main_area->window, pot);
-
- pid = fork();
- if (pid == -1) exit(-1);
- if (pid == 0) {
- gchar* open_url = g_strdup_printf("openURL(%s,cic)", href);
- gint fd;
-
- close(0);
- close(1);
- close(2);
-
- fd = open("/dev/null", O_RDWR);
- dup(fd);
- dup(fd);
-
- execlp("netscape", "netscape", "-noraise", "-remote", open_url, NULL);
- perror("exec failed:");
- exit(-1);
- }
- mdom_string_free(href);
+ pid_t pid;
+ g_return_if_fail(href != NULL);
+
+ pid = fork();
+ if (pid == -1) exit(-1);
+ if (pid == 0) {
+ gchar* open_url = g_strdup_printf("openURL(%s,cic)", href);
+ gint fd;
+
+ close(0);
+ close(1);
+ close(2);
+
+ fd = open("/dev/null", O_RDWR);
+ dup(fd);
+ dup(fd);
+
+ execlp("netscape", "netscape", "-noraise", "-remote", open_url, NULL);
+ perror("exec failed:");
+ exit(-1);