File: fix_parse_diagram_c.patch

package info (click to toggle)
dia2code 0.8.3-4.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 776 kB
  • sloc: ansic: 5,672; sh: 716; makefile: 20
file content (12 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nur dia2code-0.8.3/dia2code/parse_diagram.c dia2code-0.8.3.new/dia2code/parse_diagram.c
--- dia2code-0.8.3/dia2code/parse_diagram.c	2003-03-05 17:44:38.000000000 +0100
+++ dia2code-0.8.3.new/dia2code/parse_diagram.c	2007-12-13 10:36:02.000000000 +0100
@@ -490,7 +490,7 @@
     }
     implementator = find(classlist, id);
     free(id);
-    if (implementator != NULL && strlen(name) > 2) {
+    if (implementator != NULL && name != NULL && strlen(name) > 2) {
         interface = (umlclasslist) my_malloc (sizeof (umlclassnode));
         interface->key = (umlclass *) my_malloc (sizeof(umlclass));
         interface->parents = NULL;