Fix bug leftover from pstring conversion noticed by ceez
[kai/samba.git] / source3 / printing / print_aix.c
index bb125530df96efe8e10338bb0b60b373c5511916..fd85ca08336ba8e7f04a2172a7ec0b073e8dc462 100644 (file)
@@ -32,15 +32,13 @@ bool aix_cache_reload(void)
        int iEtat;
        XFILE *pfile;
        char *line = NULL, *p;
-       char *name;
+       char *name = NULL;
        TALLOC_CTX *ctx = talloc_init("aix_cache_reload");
 
        if (!ctx) {
                return false;
        }
 
-       *name = 0;
-
        DEBUG(5, ("reloading aix printcap cache\n"));
 
        if ((pfile = x_fopen(lp_printcapname(), O_RDONLY, 0)) == NULL) {