inhibited production of "(null):" in xmlGetNodePath when node has default

* tree.c: inhibited production of "(null):" in xmlGetNodePath
  when node has default namespace (Bug 129710)
diff --git a/tree.c b/tree.c
index e593d6b..d13fbcd 100644
--- a/tree.c
+++ b/tree.c
@@ -4161,8 +4161,12 @@
             sep = "/";
             name = (const char *) cur->name;
             if (cur->ns) {
-                snprintf(nametemp, sizeof(nametemp) - 1,
+	        if (cur->ns->prefix != NULL)
+                    snprintf(nametemp, sizeof(nametemp) - 1,
                          "%s:%s", cur->ns->prefix, cur->name);
+		else
+		    snprintf(nametemp, sizeof(nametemp) - 1,
+		         "%s", cur->name);
                 nametemp[sizeof(nametemp) - 1] = 0;
                 name = nametemp;
             }