Revision ea46eeca mainbox/query.c

View differences:

mainbox/query.c
34 34
  }
35 35

  
36 36
  tooltron_password = read_file("tooltron_password");
37
  if (!tooltron_password)
37
  if (tooltron_password == NULL)
38 38
    return 1;
39
  len = strlen(tooltron_password);
40
  while (len > 0 && tooltron_password[len-1] == '\n')
41
    tooltron_password[--len] = '\0';
42 39

  
43 40
  return 0;
44 41
}

Also available in: Unified diff