first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
[nivanova/samba-autobuild/.git] / source3 / utils / make_printerdef.c
index 68b603bf1f6a2f66930ab20a1f693810277954f0..fc1f8ad7812072dc0a8f4c3d37fb9954cb0e63ef 100644 (file)
@@ -176,6 +176,13 @@ static void lookup_strings(FILE *fichier)
                pointeur++;
        }  
   }
+
+  /* CCMRCF Mod, seg fault or worse if not found */
+  if (pointeur == 0) {
+     fprintf(stderr,"Printer not found\tNo [Strings] block in inf file\n");
+     exit(2);
+  }
+
 #ifdef DEBUGIT
   fprintf(stderr,"\t\tFound %d entries\n",pointeur-1);
 #endif